зеркало из
1
0
Форкнуть 0

VCR recordings for ARM azure_mgmt_network tests (#380)

This commit is contained in:
Vishrut Shah 2016-04-29 15:02:14 -07:00
Родитель 3e3bbeb89f
Коммит 82c98bf8a8
65 изменённых файлов: 19492 добавлений и 426 удалений

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

@ -9,7 +9,7 @@ script:
- cd service_management/azure && bundle install && bundle exec rake test:unit
- if [ "$INTEG_RECORDED" == "true" ] ; then bundle exec rake test:recorded ; fi
- cd ../../resource_management && bundle install
- if [ "$INTEG_RECORDED" == "true" ] ; then rake arm:recorded ; fi
- if [ "$INTEG_RECORDED" == "true" ] ; then rake arm:spec ; fi
- cd ../service_management/azure
deploy:
provider: rubygems

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

@ -0,0 +1,39 @@
## Development Environment Setup
### Download Source Code
To get the source code of the SDK via **git** just type:
```bash
git clone https://github.com/Azure/azure-sdk-for-ruby.git
cd ./azure-sdk-for-ruby
```
Move to the folder containing Gemfile
```bash
cd resource_management
```
Then, run bundler to install all the gem dependencies:
```bash
bundle install
```
### Run Recorded Integration Tests
* Set the environment variable ``INTEG_RECORDED = true``
* Run ``rake arm:spec``
### Re-Record Integration Tests
* Set the environment variable ``INTEG_RECORDED = false`` or un-set it
* Move into ``resource_management`` folder
* Copy .env_sample to .env
* Update .env with your Azure credentials **.env is in the .gitignore, so should only reside locally**
* Run specific test using ``rspec``
example:
```bash
cd ./azure_mgmt_compute
rspec spec/virtual_machines_spec.rb
```
**If vcr cassette exist then it'll replay the test otherwise it'll record it.**
## Provide Feedback
If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-sdk-for-ruby/issues) section of the project.

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

@ -63,16 +63,8 @@ namespace :arm do
end
end
desc 'run specs for each of the Azure Resource Manager projects'
task :spec => :dotenv do
each_gem do
execute_and_stream('bundle install')
execute_and_stream('bundle exec rspec')
end
end
desc 'run recorded specs for each of the Azure Resource Manager projects'
task :recorded => :dotenv do
task :spec => :dotenv do
each_gem ('spec/vcr_cassettes') do
execute_and_stream('bundle install')
execute_and_stream('bundle exec rspec')

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

@ -3,8 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'network_shared'
require_relative 'subnet_shared'
include MsRestAzure
include Azure::ARM::Resources

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

@ -3,22 +3,21 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'subnet_shared'
require_relative 'network_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
include Azure::ARM::Network::Models
describe LoadBalancers do
before(:all) do
@client = NETWORK_CLIENT.load_balancers
describe 'Load balancers' do
before(:each) do
@resource_helper = ResourceHelper.new()
@client = @resource_helper.network_client.load_balancers
@location = 'westus'
@resource_group = create_resource_group
@resource_group = @resource_helper.create_resource_group
end
after(:all) do
delete_resource_group(@resource_group.name)
after(:each) do
@resource_helper.delete_resource_group(@resource_group.name)
end
it 'should create load balancer' do
@ -31,49 +30,52 @@ describe LoadBalancers do
it 'should create load balancer with complex parameter structure' do
#create public ip address
lb_public_ip_name = get_random_name('ip')
lb_domain_name_label = get_random_name('domain')
public_ip = Models::PublicIPAddress.new
lb_public_ip_name = 'test_public_ip'
lb_domain_name_label = 'test-domain8564'
public_ip = PublicIPAddress.new
public_ip.location = @location
public_ip_props = Models::PublicIPAddressPropertiesFormat.new
public_ip_props = PublicIPAddressPropertiesFormat.new
public_ip.properties = public_ip_props
public_ip_props.public_ipallocation_method = 'Dynamic'
dns_settings = Models::PublicIPAddressDnsSettings.new
dns_settings = PublicIPAddressDnsSettings.new
public_ip_props.dns_settings = dns_settings
dns_settings.domain_name_label = lb_domain_name_label
public_ip = NETWORK_CLIENT.public_ipaddresses.create_or_update(@resource_group.name, lb_public_ip_name, public_ip).value!.body
public_ip = @resource_helper.network_client.public_ipaddresses.create_or_update(@resource_group.name, lb_public_ip_name, public_ip).value!.body
#create virtual network
vnet = create_virtual_network(@resource_group.name)
@resource_helper.create_virtual_network(@resource_group.name)
#create the load balancer
lb_name = get_random_name('lb_name')
frontend_ip_config_name = get_random_name('frontend_ip_config_name')
backend_address_pool_name = get_random_name('backend_address_pool_name')
load_balancing_rule_name = get_random_name('load_balancing_rule_name')
probe_name = get_random_name('probe_name')
inbound_nat_rule1_name = get_random_name('inbound_nat_rule')
inbound_nat_rule2_name = get_random_name('inbound_nat_rule')
lb_name = 'test_lb_name'
frontend_ip_config_name = 'frontend_ip_config_name'
backend_address_pool_name = 'backend_address_pool_name'
load_balancing_rule_name = 'load_balancing_rule_name'
probe_name = 'probe_name'
inbound_nat_rule1_name = 'inbound_nat_rule8564'
inbound_nat_rule2_name = 'inbound_nat_rule8675'
#populate load_balancer create_or_update parameter
load_balancer = Models::LoadBalancer.new
load_balancer = LoadBalancer.new
load_balancer.location = @location
load_balancer_props = Models::LoadBalancerPropertiesFormat.new
load_balancer_props = LoadBalancerPropertiesFormat.new
load_balancer.properties = load_balancer_props
frontend_ip_configuration = Models::FrontendIPConfiguration.new
frontend_ip_configuration = FrontendIPConfiguration.new
load_balancer_props.frontend_ipconfigurations = [frontend_ip_configuration]
frontend_ip_configuration.name = frontend_ip_config_name
frontend_ip_configuration_props = Models::FrontendIPConfigurationPropertiesFormat.new
frontend_ip_configuration_props = FrontendIPConfigurationPropertiesFormat.new
frontend_ip_configuration.properties = frontend_ip_configuration_props
frontend_ip_configuration_props.public_ipaddress = public_ip
backend_address_pool = Models::BackendAddressPool.new
backend_address_pool = BackendAddressPool.new
load_balancer_props.backend_address_pools = [backend_address_pool]
backend_address_pool.name = backend_address_pool_name
load_balancing_rule = Models::LoadBalancingRule.new
load_balancing_rule = LoadBalancingRule.new
load_balancer_props.load_balancing_rules = [load_balancing_rule]
load_balancing_rule.name = load_balancing_rule_name
load_balancing_rule_props = Models::LoadBalancingRulePropertiesFormat.new
load_balancing_rule_props = LoadBalancingRulePropertiesFormat.new
load_balancing_rule.properties = load_balancing_rule_props
frontend_ip_configuration_sub_resource = MsRestAzure::SubResource.new
frontend_ip_configuration_sub_resource.id =
get_child_lb_resource_id(NETWORK_CLIENT.subscription_id, @resource_group.name,
get_child_lb_resource_id(@resource_helper.network_client.subscription_id, @resource_group.name,
lb_name, 'FrontendIPConfigurations', frontend_ip_config_name)
load_balancing_rule_props.frontend_ipconfiguration = frontend_ip_configuration_sub_resource
load_balancing_rule_props.protocol = 'Tcp'
@ -84,30 +86,30 @@ describe LoadBalancers do
backend_address_pool_sub_resource = MsRestAzure::SubResource.new
load_balancing_rule_props.backend_address_pool = backend_address_pool_sub_resource
backend_address_pool_sub_resource.id =
get_child_lb_resource_id(NETWORK_CLIENT.subscription_id, @resource_group.name,
get_child_lb_resource_id(@resource_helper.network_client.subscription_id, @resource_group.name,
lb_name, 'backendAddressPools', backend_address_pool_name)
probe_sub_resource = MsRestAzure::SubResource.new
load_balancing_rule_props.probe = probe_sub_resource
probe_sub_resource.id =
get_child_lb_resource_id(NETWORK_CLIENT.subscription_id, @resource_group.name,
get_child_lb_resource_id(@resource_helper.network_client.subscription_id, @resource_group.name,
lb_name, 'probes', probe_name)
probe = Models::Probe.new
probe = Probe.new
load_balancer_props.probes = [probe]
probe.name = probe_name
probe_props = Models::ProbePropertiesFormat.new
probe_props = ProbePropertiesFormat.new
probe.properties = probe_props
probe_props.protocol = 'Http'
probe_props.port = 80
probe_props.request_path = 'healthcheck.aspx'
probe_props.interval_in_seconds = 10
probe_props.number_of_probes = 2
inbound_nat_rule1 = Models::InboundNatRule.new
inbound_nat_rule2 = Models::InboundNatRule.new
inbound_nat_rule1 = InboundNatRule.new
inbound_nat_rule2 = InboundNatRule.new
load_balancer_props.inbound_nat_rules = [inbound_nat_rule1, inbound_nat_rule2]
inbound_nat_rule1.name = inbound_nat_rule1_name
inbound_nat_rule2.name = inbound_nat_rule2_name
inbound_rule1_props = Models::InboundNatRulePropertiesFormat.new
inbound_rule2_props = Models::InboundNatRulePropertiesFormat.new
inbound_rule1_props = InboundNatRulePropertiesFormat.new
inbound_rule2_props = InboundNatRulePropertiesFormat.new
inbound_nat_rule1.properties = inbound_rule1_props
inbound_nat_rule2.properties = inbound_rule2_props
inbound_rule1_props.frontend_ipconfiguration = frontend_ip_configuration_sub_resource
@ -122,6 +124,7 @@ describe LoadBalancers do
inbound_rule2_props.idle_timeout_in_minutes = 15
inbound_rule1_props.enable_floating_ip = false
inbound_rule2_props.enable_floating_ip = false
#create load balancer
result = @client.create_or_update(@resource_group.name, lb_name, load_balancer).value!
expect(result.response.status).to eq(201)
@ -129,59 +132,45 @@ describe LoadBalancers do
expect(result.body.name).to eq(lb_name)
end
it 'should get load balancer' do
load_balancer = create_load_balancer
result = @client.get(@resource_group.name, load_balancer.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
expect(result.body.name).to eq(load_balancer.name)
end
it 'should delete load balancer' do
load_balancer = create_load_balancer
result = @client.delete(@resource_group.name, load_balancer.name).value!
expect(result.response.status).to eq(200)
end
it 'should work with TCP and UDP balance rules' do
vnet = create_virtual_network(@resource_group.name)
subnet = create_subnet(vnet, @resource_group, NETWORK_CLIENT.subnets)
vnet = @resource_helper.create_virtual_network(@resource_group.name)
subnet = @resource_helper.create_subnet(vnet, @resource_group, @resource_helper.network_client.subnets)
params = build_load_balancer_params
props = Models::LoadBalancerPropertiesFormat.new
props = LoadBalancerPropertiesFormat.new
params.properties = props
frontend_ip_configuration = Models::FrontendIPConfiguration.new
frontend_ip_configuration = FrontendIPConfiguration.new
props.frontend_ipconfigurations = [frontend_ip_configuration]
ip_config_name = get_random_name('frontend_ip_config')
ip_config_name = 'frontend_ip_config'
frontend_ip_configuration.name = ip_config_name
frontend_ip_configuration.id = get_child_lb_resource_id(NETWORK_CLIENT.subscription_id,@resource_group.name, params.name,'frontendIPConfigurations', ip_config_name)
frontend_ip_conf_props = Models::FrontendIPConfigurationPropertiesFormat.new
frontend_ip_configuration.id = get_child_lb_resource_id(@resource_helper.network_client.subscription_id, @resource_group.name, params.name,'frontendIPConfigurations', ip_config_name)
frontend_ip_conf_props = FrontendIPConfigurationPropertiesFormat.new
frontend_ip_configuration.properties = frontend_ip_conf_props
frontend_ip_conf_props.private_ipallocation_method = 'Dynamic'
frontend_ip_conf_props.subnet = subnet
udp_rule = Models::LoadBalancingRule.new
udp_rule.name = get_random_name('udp_rule')
udp_prop = Models::LoadBalancingRulePropertiesFormat.new
udp_rule = LoadBalancingRule.new
udp_rule.name = 'udp_rule'
udp_prop = LoadBalancingRulePropertiesFormat.new
udp_rule.properties = udp_prop
udp_prop.frontend_ipconfiguration = frontend_ip_configuration
udp_prop.protocol = 'Udp'
udp_prop.frontend_port = 80
udp_prop.backend_port = 80
tcp_rule = Models::LoadBalancingRule.new
tcp_rule.name = get_random_name('tcp_rule')
tcp_prop = Models::LoadBalancingRulePropertiesFormat.new
tcp_rule = LoadBalancingRule.new
tcp_rule.name = 'tcp_rule'
tcp_prop = LoadBalancingRulePropertiesFormat.new
tcp_rule.properties = tcp_prop
tcp_prop.frontend_ipconfiguration = frontend_ip_configuration
tcp_prop.protocol = 'Tcp'
tcp_prop.frontend_port = 80
tcp_prop.backend_port = 80
props.load_balancing_rules = [udp_rule, tcp_rule]
inbound_udp = Models::InboundNatRule.new
inbound_tcp = Models::InboundNatRule.new
inbound_udp = InboundNatRule.new
inbound_tcp = InboundNatRule.new
props.inbound_nat_rules = [inbound_udp, inbound_tcp]
inbound_udp.name = get_random_name('inbound_udp_rule')
inbound_tcp.name = get_random_name('inbound_tcp_rule')
inbound_udp_props = Models::InboundNatRulePropertiesFormat.new
inbound_tcp_props = Models::InboundNatRulePropertiesFormat.new
inbound_udp.name = 'inbound_udp_rule'
inbound_tcp.name = 'inbound_tcp_rule'
inbound_udp_props = InboundNatRulePropertiesFormat.new
inbound_tcp_props = InboundNatRulePropertiesFormat.new
inbound_udp.properties = inbound_udp_props
inbound_tcp.properties = inbound_tcp_props
inbound_udp_props.frontend_ipconfiguration = frontend_ip_configuration
@ -197,8 +186,18 @@ describe LoadBalancers do
expect(result.response.status).to eq(200)
end
def get_child_lb_resource_id(subscriptionId, resourceGroupName, lbname, childResourceType, childResourceName)
"/subscriptions/#{subscriptionId}/resourceGroups/#{resourceGroupName}/providers/Microsoft.Network/loadBalancers/#{lbname}/#{childResourceType}/#{childResourceName}"
it 'should get load balancer' do
load_balancer = create_load_balancer
result = @client.get(@resource_group.name, load_balancer.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
expect(result.body.name).to eq(load_balancer.name)
end
it 'should delete load balancer' do
load_balancer = create_load_balancer
result = @client.delete(@resource_group.name, load_balancer.name).value!
expect(result.response.status).to eq(200)
end
it 'should list loadbalancers in a subscription' do
@ -225,16 +224,19 @@ describe LoadBalancers do
end
end
def get_child_lb_resource_id(subscriptionId, resourceGroupName, lbname, childResourceType, childResourceName)
"/subscriptions/#{subscriptionId}/resourceGroups/#{resourceGroupName}/providers/Microsoft.Network/loadBalancers/#{lbname}/#{childResourceType}/#{childResourceName}"
end
def create_load_balancer
params = build_load_balancer_params
@client.create_or_update(@resource_group.name, params.name, params).value!.body
end
def build_load_balancer_params
params = Models::LoadBalancer.new
params = LoadBalancer.new
params.location = @location
params.name = get_random_name('load_balancer')
params.name = 'load_balancer_test'
params
end
end
end

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

@ -1,24 +0,0 @@
# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
def create_local_network_gateway(resource_group, location, name = nil)
params = build_local_network_gateway_params(location)
params.name = name.nil? ? params.name : name
NETWORK_CLIENT.local_network_gateways.create_or_update(resource_group.name, params.name, params).value!.body
end
def build_local_network_gateway_params(location)
params = Models::LocalNetworkGateway.new
params.location = location
params.name = get_random_name('local_gateway')
props = Models::LocalNetworkGatewayPropertiesFormat.new
params.properties = props
props.gateway_ip_address = "192.168.3.#{rand(9)}"
address_space = Models::AddressSpace.new
props.local_network_address_space = address_space
address_space.address_prefixes = %w(192.168.0.0/16)
params
end

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

@ -3,25 +3,25 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'local_network_gateway_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
describe LocalNetworkGateways do
before(:all) do
@client = NETWORK_CLIENT.local_network_gateways
describe 'Local Network Gateways' do
before(:each) do
@resource_helper = ResourceHelper.new()
@client = @resource_helper.network_client.local_network_gateways
@location = 'westus'
@resource_group = create_resource_group
@resource_group = @resource_helper.create_resource_group
end
after(:all) do
delete_resource_group(@resource_group.name)
after(:each) do
@resource_helper.delete_resource_group(@resource_group.name)
end
it 'should create local network gateway' do
params = build_local_network_gateway_params(@location)
params = @resource_helper.build_local_network_gateway_params(@location)
result = @client.create_or_update(@resource_group.name, params.name, params).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -29,7 +29,7 @@ describe LocalNetworkGateways do
end
it 'should get local network gateway' do
local_network_gateway = create_local_network_gateway(@resource_group, @location)
local_network_gateway = @resource_helper.create_local_network_gateway(@resource_group, @location)
result = @client.get(@resource_group.name, local_network_gateway.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -37,7 +37,7 @@ describe LocalNetworkGateways do
end
it 'should delete local network gateway' do
local_network_gateway = create_local_network_gateway(@resource_group, @location)
local_network_gateway = @resource_helper.create_local_network_gateway(@resource_group, @location)
result = @client.delete(@resource_group.name, local_network_gateway.name).value!
expect(result.response.status).to eq(200)
end
@ -53,6 +53,4 @@ describe LocalNetworkGateways do
expect(result.body.value).to be_a(Array)
end
end
end
end

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

@ -3,26 +3,23 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'network_shared'
require_relative 'subnet_shared'
require_relative 'public_ip_addresses_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
describe NetworkInterfaces do
before(:all) do
@client = NETWORK_CLIENT.network_interfaces
@resource_group = create_resource_group
describe 'Network Interfaces' do
before(:each) do
@resource_helper = ResourceHelper.new()
@client = @resource_helper.network_client.network_interfaces
@resource_group = @resource_helper.create_resource_group
@location = 'westus'
@virtual_network = create_virtual_network @resource_group.name
@subnet = create_subnet(@virtual_network, @resource_group, NETWORK_CLIENT.subnets)
@virtual_network = @resource_helper.create_virtual_network(@resource_group.name)
@subnet = @resource_helper.create_subnet(@virtual_network, @resource_group, @resource_helper.network_client.subnets)
end
after(:all) do
delete_resource_group(@resource_group.name)
after(:each) do
@resource_helper.delete_resource_group(@resource_group.name)
end
it 'should create network interface' do
@ -47,7 +44,7 @@ describe NetworkInterfaces do
expect(result.response.status).to eq(200)
end
it 'should list all the networkInterfaces in a subscription' do
it 'should list all the network interfaces in a subscription' do
result = @client.list_all.value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -59,7 +56,7 @@ describe NetworkInterfaces do
end
end
it 'should list all the networkInterfaces in a resource group' do
it 'should list all the network interfaces in a resource group' do
result = @client.list(@resource_group.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -77,21 +74,21 @@ describe NetworkInterfaces do
end
def build_network_interface_param
params = Models::NetworkInterface.new
params = NetworkInterface.new
params.location = @location
network_interface_name = get_random_name('nic')
ip_config_name = get_random_name('ip_name')
network_interface_name = 'nic8474'
ip_config_name = 'ip_name_36282'
params.name = network_interface_name
props = Models::NetworkInterfacePropertiesFormat.new
ip_configuration = Models::NetworkInterfaceIPConfiguration.new
props = NetworkInterfacePropertiesFormat.new
ip_configuration = NetworkInterfaceIPConfiguration.new
params.properties = props
props.ip_configurations = [ip_configuration]
ip_configuration_properties = Models::NetworkInterfaceIPConfigurationPropertiesFormat.new
ip_configuration_properties = NetworkInterfaceIPConfigurationPropertiesFormat.new
ip_configuration.properties = ip_configuration_properties
ip_configuration.name = ip_config_name
ip_configuration_properties.private_ipallocation_method = 'Dynamic'
ip_configuration_properties.public_ipaddress = create_public_ip_address(@location, @resource_group)
ip_configuration_properties.public_ipaddress = @resource_helper.create_public_ip_address(@location, @resource_group)
ip_configuration_properties.subnet = @subnet
params
end
end
end

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

@ -8,11 +8,15 @@ include MsRestAzure
include Azure::ARM::Network
describe NetworkManagementClient do
before(:each) do
@resource_helper = ResourceHelper.new()
end
it 'should check dns availability' do
domain_name_label = get_random_name('domainnamelabel')
dns_name_availability = NETWORK_CLIENT.check_dns_name_availability('westus', domain_name_label).value!
domain_name_label = 'domainnamelabel4706'
dns_name_availability = @resource_helper.network_client.check_dns_name_availability('westus', domain_name_label).value!
expect(dns_name_availability.response.status).to eq(200)
expect(dns_name_availability.body).not_to be_nil
expect(dns_name_availability.body.available).to be(true)
end
end
end

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

@ -3,26 +3,25 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'security_groups_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
describe NetworkSecurityGroups do
before(:all) do
@client = NETWORK_CLIENT.network_security_groups
@resource_group = create_resource_group
describe 'Network Security Groups' do
before(:each) do
@resource_helper = ResourceHelper.new()
@client = @resource_helper.network_client.network_security_groups
@resource_group = @resource_helper.create_resource_group
@location = 'westus'
end
after(:all) do
delete_resource_group(@resource_group.name)
after(:each) do
@resource_helper.delete_resource_group(@resource_group.name)
end
it 'should create security group' do
params = build_network_security_group_params(@location)
params = @resource_helper.build_network_security_group_params(@location)
result = @client.create_or_update(@resource_group.name, params.name, params).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -31,7 +30,7 @@ describe NetworkSecurityGroups do
end
it 'should get security group' do
security_group = create_network_security_group(@resource_group, @location)
security_group = @resource_helper.create_network_security_group(@resource_group, @location)
result = @client.get(@resource_group.name, security_group.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -39,7 +38,7 @@ describe NetworkSecurityGroups do
end
it 'should delete security group' do
security_group = create_network_security_group(@resource_group, @location)
security_group = @resource_helper.create_network_security_group(@resource_group, @location)
result = @client.delete(@resource_group.name, security_group.name).value!
expect(result.response.status).to eq(200)
end

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

@ -1,29 +0,0 @@
# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
def build_virtual_network_params(location)
params = Models::VirtualNetwork.new
props = Models::VirtualNetworkPropertiesFormat.new
params.location = location
address_space = Models::AddressSpace.new
address_space.address_prefixes = ['10.0.0.0/16']
props.address_space = address_space
dhcp_options = Models::DhcpOptions.new
dhcp_options.dns_servers = %w(10.1.1.1 10.1.2.4)
props.dhcp_options = dhcp_options
sub2 = Models::Subnet.new
sub2_prop = Models::SubnetPropertiesFormat.new
sub2.name = get_random_name('subnet')
sub2_prop.address_prefix = '10.0.2.0/24'
sub2.properties = sub2_prop
props.subnets = [sub2]
params.properties = props
params
end
def create_virtual_network(resource_group_name)
virtualNetworkName = get_random_name("vnet")
params = build_virtual_network_params('westus')
NETWORK_CLIENT.virtual_networks.create_or_update(resource_group_name, virtualNetworkName, params).value!.body
end

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

@ -1,28 +0,0 @@
# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
def build_public_ip_params(location)
public_ip = Models::PublicIPAddress.new
public_ip.location = location
props = Models::PublicIPAddressPropertiesFormat.new
props.public_ipallocation_method = 'Dynamic'
public_ip.properties = props
domain_name = get_random_name 'domain'
dns_settings = Models::PublicIPAddressDnsSettings.new
dns_settings.domain_name_label = domain_name
props.dns_settings = dns_settings
public_ip
end
def create_public_ip_address(location, resource_group)
public_ip_address_name = get_random_name('ip_name')
params = build_public_ip_params(location)
NETWORK_CLIENT.public_ipaddresses.create_or_update(resource_group.name, public_ip_address_name, params).value!.body
end

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

@ -3,27 +3,26 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'public_ip_addresses_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
describe PublicIPAddresses do
before(:all) do
@client = NETWORK_CLIENT.public_ipaddresses
@resource_group = create_resource_group
describe 'Public IP Addresses' do
before(:each) do
@resource_helper = ResourceHelper.new()
@client = @resource_helper.network_client.public_ipaddresses
@resource_group = @resource_helper.create_resource_group
@location = 'westus'
end
after(:all) do
delete_resource_group(@resource_group.name)
after(:each) do
@resource_helper.delete_resource_group(@resource_group.name)
end
it 'should create public ip address' do
params = build_public_ip_params(@location)
public_ip_name = get_random_name('ip_name')
params = @resource_helper.build_public_ip_params(@location)
public_ip_name = 'ip_name_364384'
result = @client.create_or_update(@resource_group.name, public_ip_name, params).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -31,14 +30,13 @@ describe PublicIPAddresses do
end
it 'should get public ip address' do
address = create_public_ip_address(@location, @resource_group)
address = @resource_helper.create_public_ip_address(@location, @resource_group)
result = @client.get(@resource_group.name, address.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
expect(result.body.name).to eq(address.name)
end
it 'should list all the public ip addresses in a resource group' do
result = @client.list(@resource_group.name).value!
expect(result.body.value).not_to be_nil
@ -52,21 +50,20 @@ describe PublicIPAddresses do
end
it 'should delete public ip address' do
address = create_public_ip_address(@location, @resource_group)
address = @resource_helper.create_public_ip_address(@location, @resource_group)
result = @client.delete(@resource_group.name, address.name).value!
expect(result.response.status).to eq(200)
end
it 'should list all the public ip addresses in a subscription' do
result = @client.list_all.value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
expect(result.body.value).to be_a(Array)
while !result.body.next_link.nil? && !result.body.next_link.empty? do
result = @client.list_all_next(result.body.next_link).value!
expect(result.body.value).not_to be_nil
it 'should list all the public ip addresses in a subscription' do
result = @client.list_all.value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
expect(result.body.value).to be_a(Array)
while !result.body.next_link.nil? && !result.body.next_link.empty? do
result = @client.list_all_next(result.body.next_link).value!
expect(result.body.value).not_to be_nil
expect(result.body.value).to be_a(Array)
end
end
end
end

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

@ -1,17 +0,0 @@
# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
def create_network_security_group(resource_group, location)
params = build_network_security_group_params(location)
NETWORK_CLIENT.network_security_groups.create_or_update(resource_group.name, params.name, params).value!.body
end
def build_network_security_group_params(location)
network_security_group_name = get_random_name('sec')
params = Models::NetworkSecurityGroup.new
params.name = network_security_group_name
params.location = location
params
end

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

@ -3,24 +3,22 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'network_shared'
require_relative 'subnet_shared'
require_relative 'security_groups_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
describe SecurityRules do
before(:all) do
@client = NETWORK_CLIENT.security_rules
describe 'Security Rules' do
before(:each) do
@resource_helper = ResourceHelper.new()
@client = @resource_helper.network_client.security_rules
@location = 'westus'
@resource_group = create_resource_group
@security_group = create_network_security_group(@resource_group, @location)
@resource_group = @resource_helper.create_resource_group
@security_group = @resource_helper.create_network_security_group(@resource_group, @location)
end
after(:all) do
delete_resource_group(@resource_group.name)
after(:each) do
@resource_helper.delete_resource_group(@resource_group.name)
end
it 'should create security rule' do
@ -29,7 +27,6 @@ describe SecurityRules do
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
expect(result.body.name).to eq(params.name)
end
it 'should get security rule' do
@ -64,19 +61,18 @@ describe SecurityRules do
end
def build_security_rule_params
params = Models::SecurityRule.new
params.name = get_random_name('sec_rule')
props = Models::SecurityRulePropertiesFormat.new
params = SecurityRule.new
params.name = 'sec_rule_7428'
props = SecurityRulePropertiesFormat.new
params.properties = props
props.access = 'Deny'
props.destination_address_prefix = '*'
props.destination_port_range = '123-3500'
props.direction = 'Outbound'
props.priority = rand(100..4096)
props.priority = 4095
props.protocol = 'Udp'
props.source_address_prefix = '*'
props.source_port_range = '656'
params
end
end
end

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

@ -2,54 +2,179 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
require 'dotenv'
Dotenv.load(File.join(File.dirname(__FILE__), '../../.env'))
require File.join(File.dirname(__FILE__), '../../vcr_helper')
require 'azure_mgmt_network'
require 'azure_mgmt_resources'
require 'ms_rest_azure'
include MsRest
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
include Azure::ARM::Network::Models
def create_resource_group(name = nil)
resource_group_name = name || get_random_name('RubySDKTest_')
params = Azure::ARM::Resources::Models::ResourceGroup.new()
params.location = 'westus'
class ResourceHelper
attr_reader :network_client, :resource_client
RESOURCE_CLIENT.resource_groups.create_or_update(resource_group_name, params).value!.body
end
def initialize
tenant_id = ENV['AZURE_TENANT_ID']
client_id = ENV['AZURE_CLIENT_ID']
secret = ENV['AZURE_CLIENT_SECRET']
@subscription_id = ENV['AZURE_SUBSCRIPTION_ID']
def delete_resource_group(name)
RESOURCE_CLIENT.resource_groups.delete(name).value!
end
token_provider = ApplicationTokenProvider.new(tenant_id, client_id, secret)
@credentials = TokenCredentials.new(token_provider)
end
def get_random_name(prefix, length = 1000)
prefix + SecureRandom.uuid.downcase.delete('^a-zA-Z0-9')[0...length]
end
def resource_client
if @resource_client.nil?
@resource_client = ResourceManagementClient.new(@credentials)
@resource_client.subscription_id = @subscription_id
@resource_client.long_running_operation_retry_timeout = ENV.fetch('RETRY_TIMEOUT', 30).to_i
end
@resource_client
end
class String
def to_b?
!self.to_i.zero?
def network_client
if @network_client.nil?
@network_client = NetworkManagementClient.new(@credentials)
@network_client.long_running_operation_retry_timeout = ENV.fetch('RETRY_TIMEOUT', 30).to_i
@network_client.subscription_id = @subscription_id
end
@network_client
end
def create_resource_group
resource_group_name = 'RubySDKTest_azure_mgmt_network'
params = Azure::ARM::Resources::Models::ResourceGroup.new()
params.location = 'westus'
resource_client.resource_groups.create_or_update(resource_group_name, params).value!.body
end
def delete_resource_group(name)
resource_client.resource_groups.delete(name).value!
end
def build_virtual_network_params(location)
params = VirtualNetwork.new
props = VirtualNetworkPropertiesFormat.new
params.location = location
address_space = AddressSpace.new
address_space.address_prefixes = ['10.0.0.0/16']
props.address_space = address_space
dhcp_options = DhcpOptions.new
dhcp_options.dns_servers = %w(10.1.1.1 10.1.2.4)
props.dhcp_options = dhcp_options
sub2 = Subnet.new
sub2_prop = SubnetPropertiesFormat.new
sub2.name = 'subnet1234'
sub2_prop.address_prefix = '10.0.2.0/24'
sub2.properties = sub2_prop
props.subnets = [sub2]
params.properties = props
params
end
def create_virtual_network(resource_group_name)
virtualNetworkName = "test_vnet"
params = build_virtual_network_params('westus')
network_client.virtual_networks.create_or_update(resource_group_name, virtualNetworkName, params).value!.body
end
def create_subnet(virtual_network, resource_group, subnet_client)
subnet_name = 'subnet4857647'
params = build_subnet_params
subnet_client.create_or_update(resource_group.name, virtual_network.name, subnet_name, params).value!.body
end
def build_subnet_params
params = Subnet.new
prop = SubnetPropertiesFormat.new
params.properties = prop
prop.address_prefix = '10.0.1.0/24'
params
end
def create_local_network_gateway(resource_group, location, name = nil)
params = build_local_network_gateway_params(location)
params.name = name.nil? ? params.name : name
network_client.local_network_gateways.create_or_update(resource_group.name, params.name, params).value!.body
end
def build_local_network_gateway_params(location)
params = LocalNetworkGateway.new
params.location = location
params.name = 'local_gateway2579'
props = LocalNetworkGatewayPropertiesFormat.new
params.properties = props
props.gateway_ip_address = "192.168.3.7"
address_space = AddressSpace.new
props.local_network_address_space = address_space
address_space.address_prefixes = %w(192.168.0.0/16)
params
end
def create_network_security_group(resource_group, location)
params = build_network_security_group_params(location)
network_client.network_security_groups.create_or_update(resource_group.name, params.name, params).value!.body
end
def build_network_security_group_params(location)
network_security_group_name = 'sec73484'
params = NetworkSecurityGroup.new
params.name = network_security_group_name
params.location = location
params
end
def create_virtual_network_gateway(location, resource_group,name = nil)
params = build_virtual_network_gateway_params(location, resource_group)
params.name = name || params.name
network_client.virtual_network_gateways.create_or_update(resource_group.name, params.name, params).value!.body
end
def build_virtual_network_gateway_params(location, resource_group)
params = VirtualNetworkGateway.new
params.location = location
params.name = 'vnet_gateway6373'
props = VirtualNetworkGatewayPropertiesFormat.new
params.properties = props
props.enable_bgp = false
props.gateway_type = 'Vpn'
props.vpn_type = 'RouteBased'
ip_config = VirtualNetworkGatewayIpConfiguration.new
props.ip_configurations = [ip_config]
ip_config.name = 'ip_config843943'
ip_config_props = VirtualNetworkGatewayIpConfigurationPropertiesFormat.new
ip_config.properties = ip_config_props
ip_config_props.private_ipallocation_method = 'Dynamic'
vnet = create_virtual_network(resource_group.name)
public_ip = create_public_ip_address(location, resource_group)
subnet_params = build_subnet_params
subnet_params.name = 'GatewaySubnet'
subnet = network_client.subnets.create_or_update(resource_group.name, vnet.name, subnet_params.name, subnet_params).value!.body
ip_config_props.public_ipaddress = public_ip
ip_config_props.subnet = subnet
params
end
def build_public_ip_params(location)
public_ip = PublicIPAddress.new
public_ip.location = location
props = PublicIPAddressPropertiesFormat.new
props.public_ipallocation_method = 'Dynamic'
public_ip.properties = props
domain_name = 'domain734843'
dns_settings = PublicIPAddressDnsSettings.new
dns_settings.domain_name_label = domain_name
props.dns_settings = dns_settings
public_ip
end
def create_public_ip_address(location, resource_group)
public_ip_address_name = 'ip_name8363'
params = build_public_ip_params(location)
network_client.public_ipaddresses.create_or_update(resource_group.name, public_ip_address_name, params).value!.body
end
end
ResourceGroup = 'RubySDKTest'
tenant_id = ENV['AZURE_TENANT_ID']
client_id = ENV['AZURE_CLIENT_ID']
secret = ENV['AZURE_CLIENT_SECRET']
subscription_id = ENV['AZURE_SUBSCRIPTION_ID']
run_long_task_value = ENV['run_long_tasks']
RUN_LONG_TASKS = run_long_task_value.nil? ? false : run_long_task_value.to_b?
token_provider = ApplicationTokenProvider.new(tenant_id, client_id, secret)
credentials = TokenCredentials.new(token_provider)
RESOURCE_CLIENT = ResourceManagementClient.new(credentials)
RESOURCE_CLIENT.subscription_id = subscription_id
NETWORK_CLIENT = NetworkManagementClient.new(credentials)
NETWORK_CLIENT.subscription_id = subscription_id

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

@ -1,24 +0,0 @@
# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'network_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
def create_subnet(virtual_network, resource_group, subnet_client)
subnet_name = get_random_name('subnet')
params = build_subnet_params
subnet_client.create_or_update(resource_group.name, virtual_network.name, subnet_name, params).value!.body
end
def build_subnet_params
params = Models::Subnet.new
prop = Models::SubnetPropertiesFormat.new
params.properties = prop
prop.address_prefix = '10.0.1.0/24'
params
end

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

@ -3,27 +3,26 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'network_shared'
require_relative 'subnet_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
describe Subnets do
before(:all) do
@client = NETWORK_CLIENT.subnets
@resource_group = create_resource_group
describe 'Subnets' do
before(:each) do
@resource_helper = ResourceHelper.new()
@client = @resource_helper.network_client.subnets
@resource_group = @resource_helper.create_resource_group
end
after(:all) do
delete_resource_group(@resource_group.name)
after(:each) do
@resource_helper.delete_resource_group(@resource_group.name)
end
it 'should create subnet' do
virtual_network = create_virtual_network(@resource_group.name)
subnet_name = get_random_name('subnet')
params = build_subnet_params
virtual_network = @resource_helper.create_virtual_network(@resource_group.name)
subnet_name = 'subnet9520'
params = @resource_helper.build_subnet_params
result = @client.create_or_update(@resource_group.name, virtual_network.name, subnet_name, params).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -31,8 +30,8 @@ describe Subnets do
end
it 'should get subnet' do
virtual_network = create_virtual_network(@resource_group.name)
subnet = create_subnet(virtual_network, @resource_group, @client)
virtual_network = @resource_helper.create_virtual_network(@resource_group.name)
subnet = @resource_helper.create_subnet(virtual_network, @resource_group, @client)
result = @client.get(@resource_group.name, virtual_network.name, subnet.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -40,7 +39,7 @@ describe Subnets do
end
it 'should list subnets in virtual network' do
virtual_network = create_virtual_network(@resource_group.name)
virtual_network = @resource_helper.create_virtual_network(@resource_group.name)
result = @client.list(@resource_group.name, virtual_network.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -53,11 +52,9 @@ describe Subnets do
end
it 'should delete subnet from virtual network' do
virtual_network = create_virtual_network(@resource_group.name)
subnet = create_subnet(virtual_network, @resource_group, @client)
virtual_network = @resource_helper.create_virtual_network(@resource_group.name)
subnet = @resource_helper.create_subnet(virtual_network, @resource_group, @client)
result = @client.delete(@resource_group.name, virtual_network.name, subnet.name).value!
expect(result.response.status).to eq(200)
end
end
end

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

@ -3,21 +3,21 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require 'faraday'
include MsRestAzure
include Azure::ARM::Network
describe Usages do
before(:all) do
describe 'Usages' do
before(:each) do
@resource_helper = ResourceHelper.new()
@location = 'westus'
@client = NETWORK_CLIENT.usages
@client = @resource_helper.network_client.usages
end
it 'should list compute usages for subscription' do
result = @client.list(@location).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
expect(result.body.value).to be_a(Array)
end
end
end

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

@ -0,0 +1,106 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- e1538583-ab43-480b-be29-b93fafbee6ba
client-request-id:
- e6eb3aa7-e36e-4f36-beb8-898cc954bc11
x-ms-gateway-service-instanceid:
- ESTSFE_IN_593
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 07:22:31 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461399752","not_before":"1461395852","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:22:32 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/CheckDnsNameAvailability?api-version=2015-06-15&domainNameLabel=domainnamelabel4706
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a60dffd9-5457-4b1d-ab49-5e30b3e53a72
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 532d521f-5a08-4f98-87c7-eb343e7ecdb6
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14985'
x-ms-correlation-request-id:
- d259b53b-ac6a-472d-a802-c2442a3eeb9a
x-ms-routing-request-id:
- WESTUS:20160423T072233Z:d259b53b-ac6a-472d-a802-c2442a3eeb9a
date:
- Sat, 23 Apr 2016 07:22:33 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"available\": true\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:22:33 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,260 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 9babda41-1dd6-4a61-a2ab-c1acecf8baa1
client-request-id:
- 4afda868-aaa4-4452-8f16-e4861a995645
x-ms-gateway-service-instanceid:
- ESTSFE_IN_304
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 05:10:03 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461391803","not_before":"1461387903","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:10:03 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c7193a71-75dc-4dc9-9259-f880501c7641
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- a755f167-e664-4ac1-8d9d-39897d7d25a8
x-ms-correlation-request-id:
- a755f167-e664-4ac1-8d9d-39897d7d25a8
x-ms-routing-request-id:
- WESTUS:20160423T051004Z:a755f167-e664-4ac1-8d9d-39897d7d25a8
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:10:04 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:10:05 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"load_balancer_test","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 19e04a96-dd8e-4e3e-a067-8f0221006e12
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '663'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-request-id:
- c1622bb2-6263-4317-ba57-2f81dfe26fdc
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/c1622bb2-6263-4317-ba57-2f81dfe26fdc?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 0d3ecf9e-ca82-4451-a253-5d6ebf939220
x-ms-routing-request-id:
- WESTUS:20160423T051005Z:0d3ecf9e-ca82-4451-a253-5d6ebf939220
date:
- Sat, 23 Apr 2016 05:10:05 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"load_balancer_test\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test\",\r\n
\ \"etag\": \"W/\\\"0cb9c9f1-00ca-40dc-98fd-6dbb401cd533\\\"\",\r\n \"type\":
\"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"77aa407b-ddb9-405f-959b-c28e8c4263a1\",\r\n
\ \"frontendIPConfigurations\": [],\r\n \"backendAddressPools\": [],\r\n
\ \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\":
[],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:10:05 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e5876e87-1032-436e-abcb-fcf2a040f34d
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- c8a521b9-9f5f-459b-8da0-a3aecd0f45ac
x-ms-correlation-request-id:
- c8a521b9-9f5f-459b-8da0-a3aecd0f45ac
x-ms-routing-request-id:
- WESTUS:20160423T051005Z:c8a521b9-9f5f-459b-8da0-a3aecd0f45ac
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:10:05 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:10:06 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- bb1852d3-f0cb-414a-8c7b-c3c71476e573
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-request-id:
- d9065ef0-6ac1-4c8b-bdb9-8846e8c70980
x-ms-correlation-request-id:
- d9065ef0-6ac1-4c8b-bdb9-8846e8c70980
x-ms-routing-request-id:
- WESTUS:20160423T051207Z:d9065ef0-6ac1-4c8b-bdb9-8846e8c70980
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:12:07 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:12:08 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,662 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 417d76fd-3e91-4427-9d2d-6a5e828d34d1
client-request-id:
- 5e4bb6ec-38b6-4642-ba54-92bb0a340f16
x-ms-gateway-service-instanceid:
- ESTSFE_IN_305
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 05:53:03 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461394384","not_before":"1461390484","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:53:04 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 931e4ce2-ab28-4b51-b2e5-0082ef8751e1
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- d6ad9e93-1401-4bc9-8a4c-a7157a4ae59d
x-ms-correlation-request-id:
- d6ad9e93-1401-4bc9-8a4c-a7157a4ae59d
x-ms-routing-request-id:
- WESTUS:20160423T055305Z:d6ad9e93-1401-4bc9-8a4c-a7157a4ae59d
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:53:04 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:53:05 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/test_public_ip?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"test-domain8564"}}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6889797c-f623-4139-a687-4c05b0f4ceb3
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '668'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 73ac0216-edda-4944-9d89-6012926d969f
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/73ac0216-edda-4944-9d89-6012926d969f?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-correlation-request-id:
- d28c1629-cb51-4563-b66a-3e683caa52a5
x-ms-routing-request-id:
- WESTUS:20160423T055306Z:d28c1629-cb51-4563-b66a-3e683caa52a5
date:
- Sat, 23 Apr 2016 05:53:05 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_public_ip\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/test_public_ip\",\r\n
\ \"etag\": \"W/\\\"4dcf7fdb-d37e-4185-aea3-4a856af9f9cc\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"fe8e9211-0594-4785-9198-c2e682e8f8ed\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"test-domain8564\",\r\n \"fqdn\": \"test-domain8564.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:53:06 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/73ac0216-edda-4944-9d89-6012926d969f?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- bbad69ab-c38b-482a-9086-69209da8a766
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 4fdff608-0fab-47ce-83ff-63ec2c07a725
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14987'
x-ms-correlation-request-id:
- 0433e69c-3027-4704-a3c5-b9fd1d631e1d
x-ms-routing-request-id:
- WESTUS:20160423T055337Z:0433e69c-3027-4704-a3c5-b9fd1d631e1d
date:
- Sat, 23 Apr 2016 05:53:36 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:53:37 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/test_public_ip?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ab9ca375-c50d-4c4a-863b-c7a9232de63b
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"a7fbb176-6927-4211-a1d8-4e46653ce14f"
vary:
- Accept-Encoding
x-ms-request-id:
- 4ca73f27-a7e2-49ff-ba2f-ac2c42544ac0
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-correlation-request-id:
- 0d7905f6-5168-4143-a383-e2070cda4d69
x-ms-routing-request-id:
- WESTUS:20160423T055337Z:0d7905f6-5168-4143-a383-e2070cda4d69
date:
- Sat, 23 Apr 2016 05:53:37 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_public_ip\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/test_public_ip\",\r\n
\ \"etag\": \"W/\\\"a7fbb176-6927-4211-a1d8-4e46653ce14f\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"fe8e9211-0594-4785-9198-c2e682e8f8ed\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"test-domain8564\",\r\n \"fqdn\": \"test-domain8564.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:53:37 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a3d5a648-7333-42a7-9819-cf175b5c05c9
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- bcf7a1cd-ec2a-4f13-9b9f-c3be89ef68e5
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/bcf7a1cd-ec2a-4f13-9b9f-c3be89ef68e5?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- 0261a397-5e96-439c-b674-d44c7ed0a603
x-ms-routing-request-id:
- WESTUS:20160423T055338Z:0261a397-5e96-439c-b674-d44c7ed0a603
date:
- Sat, 23 Apr 2016 05:53:38 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"439c64d9-139b-4d2a-b142-4b274e1767bc\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"ab460a00-f89c-4d18-b451-b63e9fa62969\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"439c64d9-139b-4d2a-b142-4b274e1767bc\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:53:39 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/bcf7a1cd-ec2a-4f13-9b9f-c3be89ef68e5?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e9025479-366e-434f-a780-9c3e444a1591
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 8ec6e1c9-26b7-4f94-8aaf-4309fc31fcf9
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 313b6d55-16fa-4ada-8413-6ad186ced86a
x-ms-routing-request-id:
- WESTUS:20160423T055409Z:313b6d55-16fa-4ada-8413-6ad186ced86a
date:
- Sat, 23 Apr 2016 05:54:09 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:54:09 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b26ecb36-33b4-4dbe-8432-9c7d215a35f7
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"ea3c4e9d-c2ba-43f1-8070-fd430f095222"
vary:
- Accept-Encoding
x-ms-request-id:
- 58b67118-81a5-4cc1-94de-14dc16387a59
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- 45752698-843e-4228-9aac-729c5078a466
x-ms-routing-request-id:
- WESTUS:20160423T055410Z:45752698-843e-4228-9aac-729c5078a466
date:
- Sat, 23 Apr 2016 05:54:09 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"ea3c4e9d-c2ba-43f1-8070-fd430f095222\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"ab460a00-f89c-4d18-b451-b63e9fa62969\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"ea3c4e9d-c2ba-43f1-8070-fd430f095222\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:54:10 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"frontendIPConfigurations":[{"properties":{"publicIPAddress":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/test_public_ip","name":"test_public_ip","type":"Microsoft.Network/publicIPAddresses","location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"test-domain8564","fqdn":"test-domain8564.westus.cloudapp.azure.com"},"idleTimeoutInMinutes":4,"resourceGuid":"fe8e9211-0594-4785-9198-c2e682e8f8ed","provisioningState":"Succeeded"},"etag":"W/\"a7fbb176-6927-4211-a1d8-4e46653ce14f\""}},"name":"frontend_ip_config_name"}],"backendAddressPools":[{"name":"backend_address_pool_name"}],"loadBalancingRules":[{"properties":{"protocol":"Tcp","frontendPort":80,"frontendIPConfiguration":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/FrontendIPConfigurations/frontend_ip_config_name"},"backendAddressPool":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/backendAddressPools/backend_address_pool_name"},"probe":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/probes/probe_name"},"backendPort":80,"idleTimeoutInMinutes":15,"enableFloatingIP":false},"name":"load_balancing_rule_name"}],"probes":[{"properties":{"protocol":"Http","port":80,"intervalInSeconds":10,"numberOfProbes":2,"requestPath":"healthcheck.aspx"},"name":"probe_name"}],"inboundNatRules":[{"properties":{"frontendIPConfiguration":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/FrontendIPConfigurations/frontend_ip_config_name"},"protocol":"Tcp","frontendPort":3389,"backendPort":3389,"idleTimeoutInMinutes":15,"enableFloatingIP":false},"name":"inbound_nat_rule8564"},{"properties":{"frontendIPConfiguration":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/FrontendIPConfigurations/frontend_ip_config_name"},"protocol":"Tcp","frontendPort":3390,"backendPort":3389,"idleTimeoutInMinutes":15,"enableFloatingIP":false},"name":"inbound_nat_rule8675"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f480071c-1d4c-49d5-9788-76623b4e71e5
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '6910'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-request-id:
- 271e9098-501d-462b-80ff-0ceedaa75e9c
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/271e9098-501d-462b-80ff-0ceedaa75e9c?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-correlation-request-id:
- a129d0db-d3e2-4c9b-abbf-f590e666c516
x-ms-routing-request-id:
- WESTUS:20160423T055410Z:a129d0db-d3e2-4c9b-abbf-f590e666c516
date:
- Sat, 23 Apr 2016 05:54:10 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_lb_name\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name\",\r\n
\ \"etag\": \"W/\\\"b3a28353-bacf-460c-8adf-f8df13eb99ea\\\"\",\r\n \"type\":
\"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"dad2d506-5086-4029-bb4f-3b7205c483ce\",\r\n
\ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"frontend_ip_config_name\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/frontendIPConfigurations/frontend_ip_config_name\",\r\n
\ \"etag\": \"W/\\\"b3a28353-bacf-460c-8adf-f8df13eb99ea\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\":
{\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/test_public_ip\"\r\n
\ },\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/loadBalancingRules/load_balancing_rule_name\"\r\n
\ }\r\n ],\r\n \"inboundNatRules\": [\r\n {\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/inboundNatRules/inbound_nat_rule8564\"\r\n
\ },\r\n {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/inboundNatRules/inbound_nat_rule8675\"\r\n
\ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\":
[\r\n {\r\n \"name\": \"backend_address_pool_name\",\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/backendAddressPools/backend_address_pool_name\",\r\n
\ \"etag\": \"W/\\\"b3a28353-bacf-460c-8adf-f8df13eb99ea\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"loadBalancingRules\": [\r\n {\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/loadBalancingRules/load_balancing_rule_name\"\r\n
\ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\":
[\r\n {\r\n \"name\": \"load_balancing_rule_name\",\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/loadBalancingRules/load_balancing_rule_name\",\r\n
\ \"etag\": \"W/\\\"b3a28353-bacf-460c-8adf-f8df13eb99ea\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/frontendIPConfigurations/frontend_ip_config_name\"\r\n
\ },\r\n \"frontendPort\": 80,\r\n \"backendPort\":
80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
15,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\":
\"Default\",\r\n \"backendAddressPool\": {\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/backendAddressPools/backend_address_pool_name\"\r\n
\ },\r\n \"probe\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/probes/probe_name\"\r\n
\ }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n {\r\n
\ \"name\": \"probe_name\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/probes/probe_name\",\r\n
\ \"etag\": \"W/\\\"b3a28353-bacf-460c-8adf-f8df13eb99ea\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \"requestPath\":
\"healthcheck.aspx\",\r\n \"intervalInSeconds\": 10,\r\n \"numberOfProbes\":
2,\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/loadBalancingRules/load_balancing_rule_name\"\r\n
\ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatRules\":
[\r\n {\r\n \"name\": \"inbound_nat_rule8564\",\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/inboundNatRules/inbound_nat_rule8564\",\r\n
\ \"etag\": \"W/\\\"b3a28353-bacf-460c-8adf-f8df13eb99ea\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/frontendIPConfigurations/frontend_ip_config_name\"\r\n
\ },\r\n \"frontendPort\": 3389,\r\n \"backendPort\":
3389,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
15,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"inbound_nat_rule8675\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/inboundNatRules/inbound_nat_rule8675\",\r\n
\ \"etag\": \"W/\\\"b3a28353-bacf-460c-8adf-f8df13eb99ea\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/test_lb_name/frontendIPConfigurations/frontend_ip_config_name\"\r\n
\ },\r\n \"frontendPort\": 3390,\r\n \"backendPort\":
3389,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
15,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n ],\r\n
\ \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:54:11 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0852eb6b-d3a7-4302-8aac-2e2883e963fe
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1194'
x-ms-request-id:
- c0c660f3-80a6-41af-8bf5-50af259f0b9d
x-ms-correlation-request-id:
- c0c660f3-80a6-41af-8bf5-50af259f0b9d
x-ms-routing-request-id:
- WESTUS:20160423T055411Z:c0c660f3-80a6-41af-8bf5-50af259f0b9d
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:54:10 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:54:11 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b0b8a0e1-9102-48dd-bf93-f2c65f083be9
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- 32ac648e-f3f2-4e09-8cee-6a5a7e6f48fe
x-ms-correlation-request-id:
- 32ac648e-f3f2-4e09-8cee-6a5a7e6f48fe
x-ms-routing-request-id:
- WESTUS:20160423T060048Z:32ac648e-f3f2-4e09-8cee-6a5a7e6f48fe
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:00:48 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:00:48 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,369 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 4918f0fc-de2e-451d-bf4b-1adc88aaab07
client-request-id:
- 4739ef36-f988-4ed0-a7ef-77feb0cecb08
x-ms-gateway-service-instanceid:
- ESTSFE_IN_82
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 06:33:06 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461396786","not_before":"1461392886","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:33:06 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c03eefef-dee6-4207-84cb-f0c4b341e61b
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- 4ddd57fa-6251-47b6-8ab9-1e374ff1f6b8
x-ms-correlation-request-id:
- 4ddd57fa-6251-47b6-8ab9-1e374ff1f6b8
x-ms-routing-request-id:
- WESTUS:20160423T063308Z:4ddd57fa-6251-47b6-8ab9-1e374ff1f6b8
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:33:07 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:33:08 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"local_gateway2579","location":"westus","properties":{"localNetworkAddressSpace":{"addressPrefixes":["192.168.0.0/16"]},"gatewayIpAddress":"192.168.3.7"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2459849c-7882-4f5d-860f-d3ca3835e7c9
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '616'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 9f17ddd6-541d-4199-8c22-1727e5a706cf
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/9f17ddd6-541d-4199-8c22-1727e5a706cf?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-correlation-request-id:
- 3e3ff252-a850-4ef3-8c6c-88b53517919a
x-ms-routing-request-id:
- WESTUS:20160423T063309Z:3e3ff252-a850-4ef3-8c6c-88b53517919a
date:
- Sat, 23 Apr 2016 06:33:08 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"local_gateway2579\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579\",\r\n
\ \"etag\": \"W/\\\"fb39308b-5e98-4c4c-ac4a-00a21a90310b\\\"\",\r\n \"type\":
\"Microsoft.Network/localNetworkGateways\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"0b093c7c-fb83-4a71-91a5-b605adec4acd\",\r\n \"localNetworkAddressSpace\":
{\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n
\ },\r\n \"gatewayIpAddress\": \"192.168.3.7\"\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:33:09 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/9f17ddd6-541d-4199-8c22-1727e5a706cf?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 58318af0-9ac0-4794-ba19-876088c78aef
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 2681168e-2e01-4468-835a-4f0ed9fdfacc
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- bbae5861-8947-4c2e-8fac-bcae2cd012b5
x-ms-routing-request-id:
- WESTUS:20160423T063339Z:bbae5861-8947-4c2e-8fac-bcae2cd012b5
date:
- Sat, 23 Apr 2016 06:33:39 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:33:39 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- be0bdabd-287f-4599-8f05-9a60279af134
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"5ded85d8-4e72-4039-bcca-b5203133b594"
vary:
- Accept-Encoding
x-ms-request-id:
- 183111a2-85ba-408d-9297-f4ceda70642c
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-correlation-request-id:
- e7bdf7e3-cc13-47c7-89c4-1a7d4c9fb2c8
x-ms-routing-request-id:
- WESTUS:20160423T063339Z:e7bdf7e3-cc13-47c7-89c4-1a7d4c9fb2c8
date:
- Sat, 23 Apr 2016 06:33:39 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"local_gateway2579\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579\",\r\n
\ \"etag\": \"W/\\\"5ded85d8-4e72-4039-bcca-b5203133b594\\\"\",\r\n \"type\":
\"Microsoft.Network/localNetworkGateways\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"0b093c7c-fb83-4a71-91a5-b605adec4acd\",\r\n \"localNetworkAddressSpace\":
{\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n
\ },\r\n \"gatewayIpAddress\": \"192.168.3.7\"\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:33:40 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 97fa0138-20f9-4da6-8ec1-74bedc329d52
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- 5ad22871-7f45-47d6-ac9a-0d6a2ab37108
x-ms-correlation-request-id:
- 5ad22871-7f45-47d6-ac9a-0d6a2ab37108
x-ms-routing-request-id:
- WESTUS:20160423T063340Z:5ad22871-7f45-47d6-ac9a-0d6a2ab37108
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:33:39 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:33:40 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4f3c03a6-1f0d-49f7-9af1-a945c7f41651
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-request-id:
- 636289ac-750d-46ea-90ec-8d65a5a1a1e0
x-ms-correlation-request-id:
- 636289ac-750d-46ea-90ec-8d65a5a1a1e0
x-ms-routing-request-id:
- WESTUS:20160423T063542Z:636289ac-750d-46ea-90ec-8d65a5a1a1e0
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:35:42 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:35:43 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,779 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 7bac927c-41cc-42cb-bfb8-52486a760d8c
client-request-id:
- c57a45bc-c0cc-4c3a-88a4-2c3761e43aea
x-ms-gateway-service-instanceid:
- ESTSFE_IN_389
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 07:04:03 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461398643","not_before":"1461394743","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:04:03 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c272611e-2c65-4cc4-b27e-2fef4d4e0cac
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- 6c35d905-ff9b-4e7a-bfcd-998edf4912f5
x-ms-correlation-request-id:
- 6c35d905-ff9b-4e7a-bfcd-998edf4912f5
x-ms-routing-request-id:
- WESTUS:20160423T070404Z:6c35d905-ff9b-4e7a-bfcd-998edf4912f5
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:04:03 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:04:04 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f25838eb-5371-4261-8114-497c9b966544
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 818f397c-233a-42c7-b58f-000222275c6b
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/818f397c-233a-42c7-b58f-000222275c6b?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- fe7e5dd5-85cc-496a-8a5f-73873404fdc0
x-ms-routing-request-id:
- WESTUS:20160423T070404Z:fe7e5dd5-85cc-496a-8a5f-73873404fdc0
date:
- Sat, 23 Apr 2016 07:04:04 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"938b8ec2-79b0-461e-8941-1cfcc80d0098\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"c874b99a-c42c-4cbe-ad7c-6b70a08496e4\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"938b8ec2-79b0-461e-8941-1cfcc80d0098\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:04:05 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/818f397c-233a-42c7-b58f-000222275c6b?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 218713ee-38e8-4522-826f-00f7f5a42655
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 5f084fb1-2e6c-4c15-839c-95d6add784df
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14991'
x-ms-correlation-request-id:
- f3b5f066-156e-4a13-a923-66c75e8814c6
x-ms-routing-request-id:
- WESTUS:20160423T070435Z:f3b5f066-156e-4a13-a923-66c75e8814c6
date:
- Sat, 23 Apr 2016 07:04:35 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:04:35 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 63628711-9882-47c0-8b1c-ecb40c9d03fb
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"57dc9f64-c293-4e88-87b8-b9bc7e28d93a"
vary:
- Accept-Encoding
x-ms-request-id:
- ce2ae73e-96d6-4af2-8448-c5f0999cb9fb
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14763'
x-ms-correlation-request-id:
- 38818085-849f-4b64-91f6-c7c013750833
x-ms-routing-request-id:
- WESTUS:20160423T070435Z:38818085-849f-4b64-91f6-c7c013750833
date:
- Sat, 23 Apr 2016 07:04:34 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"57dc9f64-c293-4e88-87b8-b9bc7e28d93a\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"c874b99a-c42c-4cbe-ad7c-6b70a08496e4\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"57dc9f64-c293-4e88-87b8-b9bc7e28d93a\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:04:36 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b3273aaa-e22a-40c9-8795-aec2c1cf5341
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '373'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- bf35885f-3542-41ca-a617-8f53eaadbaf9
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/bf35885f-3542-41ca-a617-8f53eaadbaf9?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-correlation-request-id:
- e039824b-0953-402c-bfc7-e39e39da2307
x-ms-routing-request-id:
- WESTUS:20160423T070436Z:e039824b-0953-402c-bfc7-e39e39da2307
date:
- Sat, 23 Apr 2016 07:04:35 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"8e186337-775b-4a5a-9790-3f1029417f5e\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:04:36 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/bf35885f-3542-41ca-a617-8f53eaadbaf9?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2c5caca9-a928-4f39-8704-4105ed21f6d3
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 138c7c10-d1fa-464f-85ab-f2c3f60c71e0
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14992'
x-ms-correlation-request-id:
- c91511e7-97bf-4a84-8733-b186af352107
x-ms-routing-request-id:
- WESTUS:20160423T070506Z:c91511e7-97bf-4a84-8733-b186af352107
date:
- Sat, 23 Apr 2016 07:05:06 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:05:07 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 61a01ade-b4ab-4986-b19d-e32c4badc6e2
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"44bdbf07-d227-4a4e-b876-d01edb157490"
vary:
- Accept-Encoding
x-ms-request-id:
- 0e979b2d-14de-4b85-ad6a-76f57b19c336
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-correlation-request-id:
- 1ced5c4e-93eb-4afb-8b53-d991c1285552
x-ms-routing-request-id:
- WESTUS:20160423T070506Z:1ced5c4e-93eb-4afb-8b53-d991c1285552
date:
- Sat, 23 Apr 2016 07:05:06 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"44bdbf07-d227-4a4e-b876-d01edb157490\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:05:07 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843"}}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2dcd9c54-2828-4417-8864-7b1f3bca800a
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '656'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- a7677fba-b846-4414-81c6-71e91aa3d48a
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/a7677fba-b846-4414-81c6-71e91aa3d48a?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-correlation-request-id:
- e2c0e2fb-df0d-4055-bb92-7070f26cea71
x-ms-routing-request-id:
- WESTUS:20160423T070508Z:e2c0e2fb-df0d-4055-bb92-7070f26cea71
date:
- Sat, 23 Apr 2016 07:05:07 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"60c7401e-567c-4d5b-898f-9ec8234e41cb\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"0b1d8b6f-2026-41c9-8b15-8c80a009be5e\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:05:08 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/a7677fba-b846-4414-81c6-71e91aa3d48a?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 674ae968-2563-46b2-827f-234a636dc92e
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 51c48cac-64a1-491d-9e89-36ed405de341
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-correlation-request-id:
- 72c9bf87-fcd7-4cb0-86cf-d699cfb4dbb0
x-ms-routing-request-id:
- WESTUS:20160423T070538Z:72c9bf87-fcd7-4cb0-86cf-d699cfb4dbb0
date:
- Sat, 23 Apr 2016 07:05:37 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:05:39 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 8fb53851-5712-47e6-87b6-850a34f2ab35
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"77443114-2d32-4d69-876e-86c1c950a5b7"
vary:
- Accept-Encoding
x-ms-request-id:
- 3fb1b670-716d-43a7-8e7b-e020b97dacb7
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14989'
x-ms-correlation-request-id:
- 34475859-784d-45a1-b8a6-9e8f8ad0ea17
x-ms-routing-request-id:
- WESTUS:20160423T070539Z:34475859-784d-45a1-b8a6-9e8f8ad0ea17
date:
- Sat, 23 Apr 2016 07:05:38 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"77443114-2d32-4d69-876e-86c1c950a5b7\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"0b1d8b6f-2026-41c9-8b15-8c80a009be5e\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:05:39 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"nic8474","location":"westus","properties":{"ipConfigurations":[{"properties":{"privateIPAllocationMethod":"Dynamic","subnet":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647","properties":{"addressPrefix":"10.0.1.0/24","provisioningState":"Succeeded"},"name":"subnet4857647","etag":"W/\"44bdbf07-d227-4a4e-b876-d01edb157490\""},"publicIPAddress":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363","name":"ip_name8363","type":"Microsoft.Network/publicIPAddresses","location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843","fqdn":"domain734843.westus.cloudapp.azure.com"},"idleTimeoutInMinutes":4,"resourceGuid":"0b1d8b6f-2026-41c9-8b15-8c80a009be5e","provisioningState":"Succeeded"},"etag":"W/\"77443114-2d32-4d69-876e-86c1c950a5b7\""}},"name":"ip_name_36282"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0cda220c-5b77-4367-95e8-723cf010a498
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1573'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-request-id:
- 3d0e800a-8ae7-4486-820c-615becff10ec
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/3d0e800a-8ae7-4486-820c-615becff10ec?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-correlation-request-id:
- ac5ac8da-acdb-4c58-8703-768b3f4e421c
x-ms-routing-request-id:
- WESTUS:20160423T070540Z:ac5ac8da-acdb-4c58-8703-768b3f4e421c
date:
- Sat, 23 Apr 2016 07:05:39 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"nic8474\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474\",\r\n
\ \"etag\": \"W/\\\"7ae2b4b4-45f3-4bae-9c34-2fd16c488d8f\\\"\",\r\n \"type\":
\"Microsoft.Network/networkInterfaces\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"c6a0abc9-806e-4416-92d9-ee68f8258f42\",\r\n \"ipConfigurations\": [\r\n
\ {\r\n \"name\": \"ip_name_36282\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474/ipConfigurations/ip_name_36282\",\r\n
\ \"etag\": \"W/\\\"7ae2b4b4-45f3-4bae-9c34-2fd16c488d8f\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"privateIPAddress\": \"10.0.1.4\",\r\n \"privateIPAllocationMethod\":
\"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\"\r\n
\ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\"\r\n
\ },\r\n \"primary\": true\r\n }\r\n }\r\n ],\r\n
\ \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\":
[]\r\n },\r\n \"enableIPForwarding\": false\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:05:40 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6c44585b-e893-40cb-a201-80903cec877b
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-request-id:
- e6f1585a-e208-47a1-90a2-fe22f270d14b
x-ms-correlation-request-id:
- e6f1585a-e208-47a1-90a2-fe22f270d14b
x-ms-routing-request-id:
- WESTUS:20160423T070541Z:e6f1585a-e208-47a1-90a2-fe22f270d14b
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:05:40 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:05:41 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a1a4858a-f5bb-425e-a2e7-99affc908d2d
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-request-id:
- a62abfcf-c645-4118-9b13-e1cfc495b272
x-ms-correlation-request-id:
- a62abfcf-c645-4118-9b13-e1cfc495b272
x-ms-routing-request-id:
- WESTUS:20160423T070743Z:a62abfcf-c645-4118-9b13-e1cfc495b272
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:07:42 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:07:43 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,371 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 1c4601b1-0257-4b8c-9e9c-52745c2dbec6
client-request-id:
- 25eaaf23-0f64-4670-a588-84dc64541540
x-ms-gateway-service-instanceid:
- ESTSFE_IN_548
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:39:08 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461519550","not_before":"1461515650","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:39:09 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- dc629776-eac4-4740-9c6e-8f0b225047ff
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 3e9b10d1-a15f-4b3b-9c8b-651262435520
x-ms-correlation-request-id:
- 3e9b10d1-a15f-4b3b-9c8b-651262435520
x-ms-routing-request-id:
- WESTUS:20160424T163910Z:3e9b10d1-a15f-4b3b-9c8b-651262435520
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:39:10 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:39:10 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name_364384?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843"}}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2eb1ef24-7c2d-4f8c-a970-7098795b277e
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '662'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 036c976c-4c94-49cf-a757-56b0ad5c7e85
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/036c976c-4c94-49cf-a757-56b0ad5c7e85?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 6ba0b4e0-0e2e-45a7-8a23-c1a82534ac18
x-ms-routing-request-id:
- WESTUS:20160424T163912Z:6ba0b4e0-0e2e-45a7-8a23-c1a82534ac18
date:
- Sun, 24 Apr 2016 16:39:12 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"ip_name_364384\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name_364384\",\r\n
\ \"etag\": \"W/\\\"3f0fc2e6-56b2-459a-a73d-8cb79680df85\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"78622bd5-1b66-4eae-b72a-9f374685770e\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:39:12 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/036c976c-4c94-49cf-a757-56b0ad5c7e85?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- aeab50e5-0f21-4fc5-9e9f-2fd8009d9868
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 2901f5aa-f01b-49d3-bb58-9e30a2c6d9cf
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- f1cade5d-0e45-45c4-806c-ac56d6bc8265
x-ms-routing-request-id:
- WESTUS:20160424T163943Z:f1cade5d-0e45-45c4-806c-ac56d6bc8265
date:
- Sun, 24 Apr 2016 16:39:42 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:39:42 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name_364384?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e3767c1d-4b6c-4e79-86a4-66dd5eb3fe69
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"721d1a46-5076-4e06-b114-a7f0d1500eb6"
vary:
- Accept-Encoding
x-ms-request-id:
- c5460276-503b-4cfc-a87e-1ce8b289f376
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14940'
x-ms-correlation-request-id:
- 7e897cde-e155-4c75-bf5a-1472b186cae4
x-ms-routing-request-id:
- WESTUS:20160424T163943Z:7e897cde-e155-4c75-bf5a-1472b186cae4
date:
- Sun, 24 Apr 2016 16:39:42 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"ip_name_364384\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name_364384\",\r\n
\ \"etag\": \"W/\\\"721d1a46-5076-4e06-b114-a7f0d1500eb6\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"78622bd5-1b66-4eae-b72a-9f374685770e\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:39:43 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 55b591cb-f399-4148-92fc-ec495acb0dac
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 58020c00-4666-4b99-bf40-62c0139977ed
x-ms-correlation-request-id:
- 58020c00-4666-4b99-bf40-62c0139977ed
x-ms-routing-request-id:
- WESTUS:20160424T163943Z:58020c00-4666-4b99-bf40-62c0139977ed
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:39:43 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:39:43 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e3e1eecf-8811-4614-9658-a8ed6e0e611c
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- 35bd1dd7-081a-4c48-adbe-fa227a7d4fd1
x-ms-correlation-request-id:
- 35bd1dd7-081a-4c48-adbe-fa227a7d4fd1
x-ms-routing-request-id:
- WESTUS:20160424T164145Z:35bd1dd7-081a-4c48-adbe-fa227a7d4fd1
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:41:44 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:41:44 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,473 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 21f56d85-8c10-4d86-be80-f4477d4d5b0b
client-request-id:
- 2dfb1432-f750-4a3b-8422-bde64f34464e
x-ms-gateway-service-instanceid:
- ESTSFE_IN_68
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:16:46 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461518207","not_before":"1461514307","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:16:46 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b98e4310-426d-41e5-924d-4fecd88585ab
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 2741216a-4158-4e35-ba07-58399dbb7307
x-ms-correlation-request-id:
- 2741216a-4158-4e35-ba07-58399dbb7307
x-ms-routing-request-id:
- WESTUS:20160424T161648Z:2741216a-4158-4e35-ba07-58399dbb7307
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:16:48 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:16:47 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"sec73484","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0550c520-0d8d-44dc-8486-c39975f38696
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '5196'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- b2e0c588-bd08-4f46-89a4-3b179554072d
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/b2e0c588-bd08-4f46-89a4-3b179554072d?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 75413d55-8957-4558-8800-d52a88fba128
x-ms-routing-request-id:
- WESTUS:20160424T161649Z:75413d55-8957-4558-8800-d52a88fba128
date:
- Sun, 24 Apr 2016 16:16:48 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"3f8aab1a-5fd3-45d4-989e-b97f577d32cf\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"88708602-98ca-4ee3-bdc0-78d21e6e00cb\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"3f8aab1a-5fd3-45d4-989e-b97f577d32cf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"3f8aab1a-5fd3-45d4-989e-b97f577d32cf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"3f8aab1a-5fd3-45d4-989e-b97f577d32cf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"3f8aab1a-5fd3-45d4-989e-b97f577d32cf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"3f8aab1a-5fd3-45d4-989e-b97f577d32cf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"3f8aab1a-5fd3-45d4-989e-b97f577d32cf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:16:49 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/b2e0c588-bd08-4f46-89a4-3b179554072d?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- feaf6f09-de66-4fd6-8825-07921a3d37e2
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- d9843024-eb10-4d2e-b236-42c097bd78bf
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- ecf46770-f583-4101-a4ed-bb7c9084edda
x-ms-routing-request-id:
- WESTUS:20160424T161719Z:ecf46770-f583-4101-a4ed-bb7c9084edda
date:
- Sun, 24 Apr 2016 16:17:19 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:17:19 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 914dba00-5f35-486c-a5ad-1d1a84228b6b
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"cf8861f9-508c-46dd-816e-36aac56fde59"
vary:
- Accept-Encoding
x-ms-request-id:
- 55df5a61-0a94-45bf-b41a-8e72e22be1db
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-correlation-request-id:
- 55586334-d960-4db7-9ec0-78e1b1bc49cf
x-ms-routing-request-id:
- WESTUS:20160424T161720Z:55586334-d960-4db7-9ec0-78e1b1bc49cf
date:
- Sun, 24 Apr 2016 16:17:19 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"cf8861f9-508c-46dd-816e-36aac56fde59\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"88708602-98ca-4ee3-bdc0-78d21e6e00cb\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"cf8861f9-508c-46dd-816e-36aac56fde59\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"cf8861f9-508c-46dd-816e-36aac56fde59\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"cf8861f9-508c-46dd-816e-36aac56fde59\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"cf8861f9-508c-46dd-816e-36aac56fde59\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"cf8861f9-508c-46dd-816e-36aac56fde59\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"cf8861f9-508c-46dd-816e-36aac56fde59\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:17:19 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 883a68a5-1578-4460-b489-527c93d5b724
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 0bd328f2-ab45-45d8-95d3-dee52324ff83
x-ms-correlation-request-id:
- 0bd328f2-ab45-45d8-95d3-dee52324ff83
x-ms-routing-request-id:
- WESTUS:20160424T161720Z:0bd328f2-ab45-45d8-95d3-dee52324ff83
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:17:20 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:17:20 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 14a05c50-8aab-40ef-b727-72d0dc72c7c5
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-request-id:
- 94302071-e6d4-460b-bba2-712b5133f627
x-ms-correlation-request-id:
- 94302071-e6d4-460b-bba2-712b5133f627
x-ms-routing-request-id:
- WESTUS:20160424T161922Z:94302071-e6d4-460b-bba2-712b5133f627
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:19:21 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:19:21 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,641 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 480aa82e-76b6-4986-80af-e5daaa71eded
client-request-id:
- 7ea40413-02a6-4628-b8e9-7d2876ed86a4
x-ms-gateway-service-instanceid:
- ESTSFE_IN_400
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:52:52 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461520373","not_before":"1461516473","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:52:53 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a5a3f6ee-8edb-4dc4-9d2b-ff5cb2868c48
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- fa404700-ac56-4db2-894f-473f64da293d
x-ms-correlation-request-id:
- fa404700-ac56-4db2-894f-473f64da293d
x-ms-routing-request-id:
- WESTUS:20160424T165258Z:fa404700-ac56-4db2-894f-473f64da293d
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:52:58 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:52:57 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"sec73484","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 572cb572-6382-4ac2-ae75-bbdecda9aa1b
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '5196'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- f124ed92-84b5-4fb2-be2b-8bd42e5596ab
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/f124ed92-84b5-4fb2-be2b-8bd42e5596ab?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 2f914c23-9d49-4f9b-ade2-952bf622fb1f
x-ms-routing-request-id:
- WESTUS:20160424T165259Z:2f914c23-9d49-4f9b-ade2-952bf622fb1f
date:
- Sun, 24 Apr 2016 16:52:58 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"bd7acddf-50f4-496f-9303-742c983dd51b\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"707971cf-e2df-487e-90cd-28aa149b828c\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"bd7acddf-50f4-496f-9303-742c983dd51b\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"bd7acddf-50f4-496f-9303-742c983dd51b\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"bd7acddf-50f4-496f-9303-742c983dd51b\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"bd7acddf-50f4-496f-9303-742c983dd51b\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"bd7acddf-50f4-496f-9303-742c983dd51b\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"bd7acddf-50f4-496f-9303-742c983dd51b\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:52:58 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/f124ed92-84b5-4fb2-be2b-8bd42e5596ab?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f58d234f-6d79-4ab1-8669-c4cac2ce19bc
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- c9a2eb08-d84a-42d4-86cb-1e3f9cee1fde
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- c1a19655-f5bb-4da7-925b-7fc0947af1f3
x-ms-routing-request-id:
- WESTUS:20160424T165329Z:c1a19655-f5bb-4da7-925b-7fc0947af1f3
date:
- Sun, 24 Apr 2016 16:53:29 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:53:29 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f9ff577b-6641-4e54-9a0f-803a4c1c3714
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"708f34ee-701e-4de2-9db5-704a9035d178"
vary:
- Accept-Encoding
x-ms-request-id:
- 639f2a1e-9d02-43aa-ac7c-fde377179791
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- b78e7b7b-b66f-4f33-b079-c9a119d4f7bf
x-ms-routing-request-id:
- WESTUS:20160424T165329Z:b78e7b7b-b66f-4f33-b079-c9a119d4f7bf
date:
- Sun, 24 Apr 2016 16:53:29 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"708f34ee-701e-4de2-9db5-704a9035d178\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"707971cf-e2df-487e-90cd-28aa149b828c\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"708f34ee-701e-4de2-9db5-704a9035d178\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"708f34ee-701e-4de2-9db5-704a9035d178\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"708f34ee-701e-4de2-9db5-704a9035d178\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"708f34ee-701e-4de2-9db5-704a9035d178\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"708f34ee-701e-4de2-9db5-704a9035d178\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"708f34ee-701e-4de2-9db5-704a9035d178\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:53:29 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"protocol":"Udp","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","direction":"Outbound","sourcePortRange":"656","destinationPortRange":"123-3500","priority":4095},"name":"sec_rule_7428"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 3e2fd9b4-795f-4256-ad4c-dd1266359475
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '590'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 52b7966f-2399-48ef-a8f6-97fbd401cdc4
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/52b7966f-2399-48ef-a8f6-97fbd401cdc4?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 5cbe4cce-ab8c-4f8d-a164-5cf6f8a654d9
x-ms-routing-request-id:
- WESTUS:20160424T165330Z:5cbe4cce-ab8c-4f8d-a164-5cf6f8a654d9
date:
- Sun, 24 Apr 2016 16:53:30 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec_rule_7428\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428\",\r\n
\ \"etag\": \"W/\\\"5e0a73da-cbf3-4251-a463-03a4eca0eefc\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"Udp\",\r\n
\ \"sourcePortRange\": \"656\",\r\n \"destinationPortRange\": \"123-3500\",\r\n
\ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Deny\",\r\n \"priority\": 4095,\r\n \"direction\":
\"Outbound\"\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:53:30 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/52b7966f-2399-48ef-a8f6-97fbd401cdc4?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b67d5596-5058-4434-a628-89f968910bdc
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- eb61c7cb-0725-4a60-8f2e-7f5a92d9bedf
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 857e13e7-3f8c-44c8-9e05-565f75de9471
x-ms-routing-request-id:
- WESTUS:20160424T165401Z:857e13e7-3f8c-44c8-9e05-565f75de9471
date:
- Sun, 24 Apr 2016 16:54:00 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:54:00 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e7477881-3d90-4636-a380-782dafa0c1f0
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"4e9f08bb-53df-41e0-a5de-cab004dc59b5"
vary:
- Accept-Encoding
x-ms-request-id:
- 9e525501-994e-4564-9f21-ee12522c7bf5
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 67ee18f3-5a76-49e8-8c23-276fe0b4b2bf
x-ms-routing-request-id:
- WESTUS:20160424T165401Z:67ee18f3-5a76-49e8-8c23-276fe0b4b2bf
date:
- Sun, 24 Apr 2016 16:54:00 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec_rule_7428\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428\",\r\n
\ \"etag\": \"W/\\\"4e9f08bb-53df-41e0-a5de-cab004dc59b5\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"Udp\",\r\n
\ \"sourcePortRange\": \"656\",\r\n \"destinationPortRange\": \"123-3500\",\r\n
\ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Deny\",\r\n \"priority\": 4095,\r\n \"direction\":
\"Outbound\"\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:54:00 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 14741e60-243e-477f-9f05-74d4e3e07738
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- ef8c4b71-369b-4448-8727-1591bb62cdd9
x-ms-correlation-request-id:
- ef8c4b71-369b-4448-8727-1591bb62cdd9
x-ms-routing-request-id:
- WESTUS:20160424T165401Z:ef8c4b71-369b-4448-8727-1591bb62cdd9
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:54:01 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:54:01 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 5bdad9ba-27e3-4f99-a4da-f79fb30c7d9e
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-request-id:
- 5fc9e370-ba7c-46ff-b469-3f3142fda314
x-ms-correlation-request-id:
- 5fc9e370-ba7c-46ff-b469-3f3142fda314
x-ms-routing-request-id:
- WESTUS:20160424T165603Z:5fc9e370-ba7c-46ff-b469-3f3142fda314
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:56:02 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:56:03 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,543 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 6221b2bf-8d50-4d3f-8fa9-ad45f86a660c
client-request-id:
- 4491faff-ccef-4c4d-bad8-4b4761a54342
x-ms-gateway-service-instanceid:
- ESTSFE_IN_175
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:12:12 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461521533","not_before":"1461517633","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:12:13 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e1286b55-5a87-4e2a-ad29-a52d8713944c
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 37557cf1-94d5-4c2b-b194-4cb3b8157a0b
x-ms-correlation-request-id:
- 37557cf1-94d5-4c2b-b194-4cb3b8157a0b
x-ms-routing-request-id:
- WESTUS:20160424T171214Z:37557cf1-94d5-4c2b-b194-4cb3b8157a0b
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:12:13 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:12:13 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4146359c-f431-499e-80bb-c68c82c2ba31
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 32f87502-8931-49de-a420-b0f79d3a1f61
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/32f87502-8931-49de-a420-b0f79d3a1f61?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 56a8138b-3f93-4bd2-a31f-bb624039860d
x-ms-routing-request-id:
- WESTUS:20160424T171215Z:56a8138b-3f93-4bd2-a31f-bb624039860d
date:
- Sun, 24 Apr 2016 17:12:14 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"4e82d460-d15d-47ec-a5f7-d6caae654e68\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"b893dd96-ca38-4ceb-85da-6baafdc171c4\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"4e82d460-d15d-47ec-a5f7-d6caae654e68\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:12:14 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/32f87502-8931-49de-a420-b0f79d3a1f61?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a7958e2f-2d24-4625-bed3-9dcc420d5602
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- f8d6836e-8ded-46b3-8105-855e902a3045
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- 4d0d20d6-b741-4be4-b064-5412569f4beb
x-ms-routing-request-id:
- WESTUS:20160424T171246Z:4d0d20d6-b741-4be4-b064-5412569f4beb
date:
- Sun, 24 Apr 2016 17:12:45 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:12:45 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 05c5e4d1-836b-4c0d-8bfd-55bb1401907e
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"e02eb845-daa1-4656-9580-4be0843930ed"
vary:
- Accept-Encoding
x-ms-request-id:
- 542557c5-1e35-442f-b8f0-f4035145512f
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 1353a5a4-3832-4a7b-af2d-892436d23986
x-ms-routing-request-id:
- WESTUS:20160424T171246Z:1353a5a4-3832-4a7b-af2d-892436d23986
date:
- Sun, 24 Apr 2016 17:12:45 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"e02eb845-daa1-4656-9580-4be0843930ed\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"b893dd96-ca38-4ceb-85da-6baafdc171c4\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"e02eb845-daa1-4656-9580-4be0843930ed\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:12:46 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet9520?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 34bab99e-d402-4fc2-b422-74700557420a
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '367'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- d4c8ab0b-19f2-4a7d-89bc-310f61d1e8c4
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/d4c8ab0b-19f2-4a7d-89bc-310f61d1e8c4?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- d8ab0ad2-2933-492e-8e02-b476b4971d65
x-ms-routing-request-id:
- WESTUS:20160424T171247Z:d8ab0ad2-2933-492e-8e02-b476b4971d65
date:
- Sun, 24 Apr 2016 17:12:46 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet9520\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet9520\",\r\n
\ \"etag\": \"W/\\\"ee2957cc-4524-44fb-93ef-4029e946212d\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:12:46 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/d4c8ab0b-19f2-4a7d-89bc-310f61d1e8c4?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 407e78ee-5c67-4b00-b637-964f06b64640
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- b6086832-cfff-49fa-924a-b8aa659e8d0d
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- eabd8b5f-78b6-4048-8818-108eead144d0
x-ms-routing-request-id:
- WESTUS:20160424T171317Z:eabd8b5f-78b6-4048-8818-108eead144d0
date:
- Sun, 24 Apr 2016 17:13:17 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:13:17 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet9520?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 289546cf-84f6-4f3e-8494-bfb93f98a89f
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"28ba0e3f-6ea2-425d-8fc4-19f30416c73c"
vary:
- Accept-Encoding
x-ms-request-id:
- cc6fdf28-3ba5-4adb-b62e-24e30b45b69c
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- f7c9c786-2eaa-4017-9146-495e328e7f72
x-ms-routing-request-id:
- WESTUS:20160424T171318Z:f7c9c786-2eaa-4017-9146-495e328e7f72
date:
- Sun, 24 Apr 2016 17:13:17 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet9520\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet9520\",\r\n
\ \"etag\": \"W/\\\"28ba0e3f-6ea2-425d-8fc4-19f30416c73c\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:13:17 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 288fa79a-ec5b-44ee-b034-9f168235c7f3
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- e13f5042-c719-43fa-af89-46f08e5d2590
x-ms-correlation-request-id:
- e13f5042-c719-43fa-af89-46f08e5d2590
x-ms-routing-request-id:
- WESTUS:20160424T171318Z:e13f5042-c719-43fa-af89-46f08e5d2590
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:13:18 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:13:18 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6bfc9e8d-62ce-4feb-84df-a208d9ea8d49
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-request-id:
- 7a308667-05fd-4a8a-823f-059c9e871d07
x-ms-correlation-request-id:
- 7a308667-05fd-4a8a-823f-059c9e871d07
x-ms-routing-request-id:
- WESTUS:20160424T171520Z:7a308667-05fd-4a8a-823f-059c9e871d07
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:15:20 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:15:20 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,381 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 836ad350-f64d-4241-9185-7aa3a8973e78
client-request-id:
- 440d7f4e-376e-49f2-bb85-1f9ca2d06d68
x-ms-gateway-service-instanceid:
- ESTSFE_IN_8
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:48:51 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461523731","not_before":"1461519831","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:48:51 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- d6f6fa97-6828-499f-81fb-1ad8711d6ae7
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 7dfc6edb-1bce-40f5-8522-f1449033882d
x-ms-correlation-request-id:
- 7dfc6edb-1bce-40f5-8522-f1449033882d
x-ms-routing-request-id:
- WESTUS:20160424T174852Z:7dfc6edb-1bce-40f5-8522-f1449033882d
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:48:51 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:48:52 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/vnet7384?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1a94848b-4722-4267-a744-80a489316750
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1084'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- eb6688ca-d0b7-46a8-87cb-8907b365b3ca
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/eb6688ca-d0b7-46a8-87cb-8907b365b3ca?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- 93dddee6-88f4-4233-8309-774a1ba4ddca
x-ms-routing-request-id:
- WESTUS:20160424T174853Z:93dddee6-88f4-4233-8309-774a1ba4ddca
date:
- Sun, 24 Apr 2016 17:48:53 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"vnet7384\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/vnet7384\",\r\n
\ \"etag\": \"W/\\\"40c5270e-8f78-4c5f-8058-c142ebf9e3e0\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"60b8add9-deff-4825-85bc-a3ef3c761cae\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/vnet7384/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"40c5270e-8f78-4c5f-8058-c142ebf9e3e0\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:48:53 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/eb6688ca-d0b7-46a8-87cb-8907b365b3ca?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 196097e1-d560-4b3d-984b-9508edf0cfa0
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- cd668e98-6850-4d0b-924e-da7040e86e63
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- e04a1083-e175-4ae7-abbe-dfab1daec8d4
x-ms-routing-request-id:
- WESTUS:20160424T174924Z:e04a1083-e175-4ae7-abbe-dfab1daec8d4
date:
- Sun, 24 Apr 2016 17:49:23 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:49:23 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/vnet7384?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 27e3a876-2f07-4c49-ab77-48ba1ff338ff
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"63205111-f9fe-4100-8707-9b71696d5087"
vary:
- Accept-Encoding
x-ms-request-id:
- 567a123d-8973-482d-9d3e-1d2d40af1bbd
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-correlation-request-id:
- 193b9736-adcf-448a-a2f3-37316b8ff7af
x-ms-routing-request-id:
- WESTUS:20160424T174924Z:193b9736-adcf-448a-a2f3-37316b8ff7af
date:
- Sun, 24 Apr 2016 17:49:23 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"vnet7384\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/vnet7384\",\r\n
\ \"etag\": \"W/\\\"63205111-f9fe-4100-8707-9b71696d5087\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"60b8add9-deff-4825-85bc-a3ef3c761cae\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/vnet7384/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"63205111-f9fe-4100-8707-9b71696d5087\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:49:24 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 817ef1b8-23f7-4b04-b835-d10cca21dae4
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- cca71c4d-10fa-416c-8d89-4d858a714ee4
x-ms-correlation-request-id:
- cca71c4d-10fa-416c-8d89-4d858a714ee4
x-ms-routing-request-id:
- WESTUS:20160424T174924Z:cca71c4d-10fa-416c-8d89-4d858a714ee4
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:49:24 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:49:24 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- cc4fdcc2-00c6-4626-baf7-85477aa0db53
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-request-id:
- 80845d1f-134e-4fbf-9791-53bea5ebcd61
x-ms-correlation-request-id:
- 80845d1f-134e-4fbf-9791-53bea5ebcd61
x-ms-routing-request-id:
- WESTUS:20160424T175127Z:80845d1f-134e-4fbf-9791-53bea5ebcd61
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:51:27 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:51:27 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,363 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- dce2edd6-3db5-4133-ae79-09a590b57295
client-request-id:
- 472a7deb-e7bf-4cc6-863a-91a0947e067b
x-ms-gateway-service-instanceid:
- ESTSFE_IN_336
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 05:18:24 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461392305","not_before":"1461388405","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:18:25 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 23818387-f1ea-4c9b-b0b8-034a41f2ae48
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 5cd5044a-66d4-4f7f-be0c-9303d3d662b3
x-ms-correlation-request-id:
- 5cd5044a-66d4-4f7f-be0c-9303d3d662b3
x-ms-routing-request-id:
- WESTUS:20160423T051825Z:5cd5044a-66d4-4f7f-be0c-9303d3d662b3
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:18:25 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:18:25 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"load_balancer_test","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 5351d248-64e9-4d2d-8986-cca4647a1dc7
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '663'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-request-id:
- cfc6f17f-e5d7-4971-91ec-a8ae1aa4b8ea
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/cfc6f17f-e5d7-4971-91ec-a8ae1aa4b8ea?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 97801feb-c08e-4632-8c5f-297428188947
x-ms-routing-request-id:
- WESTUS:20160423T051826Z:97801feb-c08e-4632-8c5f-297428188947
date:
- Sat, 23 Apr 2016 05:18:25 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"load_balancer_test\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test\",\r\n
\ \"etag\": \"W/\\\"b5a857f4-e9c2-4cb7-8e1a-f5748acbb8ee\\\"\",\r\n \"type\":
\"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"5aafb896-6994-4c84-ad29-431f4b91ed7b\",\r\n
\ \"frontendIPConfigurations\": [],\r\n \"backendAddressPools\": [],\r\n
\ \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\":
[],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:18:26 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a801d46d-729a-4c81-a1f1-564e61225e15
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '0'
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operationResults/6ab83d42-cb19-470f-bef8-13bc3f764711?api-version=2015-06-15
retry-after: '1'
x-ms-request-id:
- 6ab83d42-cb19-470f-bef8-13bc3f764711
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/6ab83d42-cb19-470f-bef8-13bc3f764711?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- e1e68095-9c54-43de-adea-2c01542f061c
x-ms-routing-request-id:
- WESTUS:20160423T051827Z:e1e68095-9c54-43de-adea-2c01542f061c
date:
- Sat, 23 Apr 2016 05:18:26 GMT
connection:
- close
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:18:27 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/6ab83d42-cb19-470f-bef8-13bc3f764711?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a5a4d31e-afbe-4943-ac86-ab6106d1f5f1
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 2e9615ae-882e-4807-89d5-f6e470dc057a
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 42d72437-f3ba-49b8-88c4-25f836ab10f4
x-ms-routing-request-id:
- WESTUS:20160423T051857Z:42d72437-f3ba-49b8-88c4-25f836ab10f4
date:
- Sat, 23 Apr 2016 05:18:57 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:18:57 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4fa60f23-7edf-499f-a337-66ceefe9a5f8
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1194'
x-ms-request-id:
- a38001a9-37cc-4899-b873-3620f5d8ede2
x-ms-correlation-request-id:
- a38001a9-37cc-4899-b873-3620f5d8ede2
x-ms-routing-request-id:
- WESTUS:20160423T051858Z:a38001a9-37cc-4899-b873-3620f5d8ede2
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:18:58 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:18:58 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4bcbf9e3-0824-474e-9194-5d26ca7b0081
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- d42c2c49-c29d-4e8e-9b87-317e48735dbe
x-ms-correlation-request-id:
- d42c2c49-c29d-4e8e-9b87-317e48735dbe
x-ms-routing-request-id:
- WESTUS:20160423T051959Z:d42c2c49-c29d-4e8e-9b87-317e48735dbe
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:19:58 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:19:59 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,472 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 7229f6d6-4d0e-48a6-8683-c235133ab6b5
client-request-id:
- 0b23acbe-1c5f-45ab-9a79-8f1f1ce5c0cd
x-ms-gateway-service-instanceid:
- ESTSFE_IN_166
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 06:38:18 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461397099","not_before":"1461393199","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:38:19 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 3ebec0df-9f30-46bf-a204-f371aef3de5e
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-request-id:
- 09a996d7-b7b7-43a5-8523-a5601eab6c84
x-ms-correlation-request-id:
- 09a996d7-b7b7-43a5-8523-a5601eab6c84
x-ms-routing-request-id:
- WESTUS:20160423T063819Z:09a996d7-b7b7-43a5-8523-a5601eab6c84
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:38:19 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:38:20 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"local_gateway2579","location":"westus","properties":{"localNetworkAddressSpace":{"addressPrefixes":["192.168.0.0/16"]},"gatewayIpAddress":"192.168.3.7"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 21596793-3d1b-4c6d-9efc-feb137ea771b
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '616'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 6f6f5890-3ea1-4646-b742-210bef9b9b90
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/6f6f5890-3ea1-4646-b742-210bef9b9b90?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 896e041f-b19c-487e-b1a0-25d5c5f8bc35
x-ms-routing-request-id:
- WESTUS:20160423T063820Z:896e041f-b19c-487e-b1a0-25d5c5f8bc35
date:
- Sat, 23 Apr 2016 06:38:20 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"local_gateway2579\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579\",\r\n
\ \"etag\": \"W/\\\"4fe88fd3-a4cb-4098-8b13-85d440bb580c\\\"\",\r\n \"type\":
\"Microsoft.Network/localNetworkGateways\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"40e7e21f-9eab-4d1a-98dc-761c1650cf3a\",\r\n \"localNetworkAddressSpace\":
{\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n
\ },\r\n \"gatewayIpAddress\": \"192.168.3.7\"\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:38:21 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/6f6f5890-3ea1-4646-b742-210bef9b9b90?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1e3fcc83-512a-4e2e-97fc-1736d785aa68
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 1555523e-507b-4220-b70c-8fafc9429654
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14992'
x-ms-correlation-request-id:
- 44ecc8a3-4cd2-4313-80dd-c6aabe0d80f8
x-ms-routing-request-id:
- WESTUS:20160423T063851Z:44ecc8a3-4cd2-4313-80dd-c6aabe0d80f8
date:
- Sat, 23 Apr 2016 06:38:50 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:38:51 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 3a2b7f05-36af-4963-8236-4fecc483e31d
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"d864d9a5-6f3e-4254-bfc9-74b3fdce3abf"
vary:
- Accept-Encoding
x-ms-request-id:
- 4a8830d2-e93d-4448-9d4e-fbede62470f8
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14878'
x-ms-correlation-request-id:
- d9b7a047-c8f4-428e-b343-c2f0abec8589
x-ms-routing-request-id:
- WESTUS:20160423T063851Z:d9b7a047-c8f4-428e-b343-c2f0abec8589
date:
- Sat, 23 Apr 2016 06:38:51 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"local_gateway2579\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579\",\r\n
\ \"etag\": \"W/\\\"d864d9a5-6f3e-4254-bfc9-74b3fdce3abf\\\"\",\r\n \"type\":
\"Microsoft.Network/localNetworkGateways\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"40e7e21f-9eab-4d1a-98dc-761c1650cf3a\",\r\n \"localNetworkAddressSpace\":
{\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n
\ },\r\n \"gatewayIpAddress\": \"192.168.3.7\"\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:38:52 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- aaed3a15-d140-4d97-81af-cfbfebf78c2b
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '0'
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operationResults/31adb2e8-d73d-4c7e-a856-fd8315036ab8?api-version=2015-06-15
retry-after: '1'
x-ms-request-id:
- 31adb2e8-d73d-4c7e-a856-fd8315036ab8
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/31adb2e8-d73d-4c7e-a856-fd8315036ab8?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- bed035e2-bbd7-4696-8088-8d99b8fef8d8
x-ms-routing-request-id:
- WESTUS:20160423T063853Z:bed035e2-bbd7-4696-8088-8d99b8fef8d8
date:
- Sat, 23 Apr 2016 06:38:52 GMT
connection:
- close
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:38:53 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/31adb2e8-d73d-4c7e-a856-fd8315036ab8?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- cebceb14-856e-4def-b0a9-6d3b9f0bdf97
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- fc3c5fdf-51bd-47b3-ac39-c8afe3371845
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- 5b771231-c0c8-47bf-9028-bd241bb94f17
x-ms-routing-request-id:
- WESTUS:20160423T063923Z:5b771231-c0c8-47bf-9028-bd241bb94f17
date:
- Sat, 23 Apr 2016 06:39:22 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:39:24 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- becf80d1-8640-46a9-a6e5-d9d948db4ab6
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 1921aca5-aa81-45c4-9e31-4f759c15caeb
x-ms-correlation-request-id:
- 1921aca5-aa81-45c4-9e31-4f759c15caeb
x-ms-routing-request-id:
- WESTUS:20160423T063924Z:1921aca5-aa81-45c4-9e31-4f759c15caeb
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:39:23 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:39:24 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 746b2e5d-7eb9-4a44-b113-42bb14388270
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-request-id:
- 14935751-2c9c-4661-93ac-a4a91ed68be0
x-ms-correlation-request-id:
- 14935751-2c9c-4661-93ac-a4a91ed68be0
x-ms-routing-request-id:
- WESTUS:20160423T063954Z:14935751-2c9c-4661-93ac-a4a91ed68be0
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:39:54 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:39:54 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,882 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- dea172ba-ceff-4184-bac6-5d931e02bd08
client-request-id:
- 92751691-3856-440e-bb9b-14d4814b1cf9
x-ms-gateway-service-instanceid:
- ESTSFE_IN_479
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 07:11:22 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461399082","not_before":"1461395182","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:11:23 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0abaeb7c-a263-4b0e-a8ae-839b5a4db3b0
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 72ce0743-ced8-4c8c-97ba-7c4fac0af29c
x-ms-correlation-request-id:
- 72ce0743-ced8-4c8c-97ba-7c4fac0af29c
x-ms-routing-request-id:
- WESTUS:20160423T071123Z:72ce0743-ced8-4c8c-97ba-7c4fac0af29c
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:11:22 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:11:24 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 3999a690-6edc-472d-880e-faf131c0ff8d
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 1351fa52-a6f5-4748-847c-6291c5642b9b
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/1351fa52-a6f5-4748-847c-6291c5642b9b?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- 1060ac3b-2c8c-4d40-b1cc-1ea1cc2840ec
x-ms-routing-request-id:
- WESTUS:20160423T071124Z:1060ac3b-2c8c-4d40-b1cc-1ea1cc2840ec
date:
- Sat, 23 Apr 2016 07:11:24 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"f7cdb142-b18e-4981-b774-a9116200446c\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"fbb22475-dbd0-4ba1-822b-7668179fcb0f\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"f7cdb142-b18e-4981-b774-a9116200446c\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:11:25 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/1351fa52-a6f5-4748-847c-6291c5642b9b?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f6aec2fe-d0b3-4a80-b4f8-26adddced1cb
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- debd9af1-b761-4320-b7e7-85d5a0ebba1d
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14988'
x-ms-correlation-request-id:
- cb852366-57d2-405d-90dc-7a796f92a38d
x-ms-routing-request-id:
- WESTUS:20160423T071155Z:cb852366-57d2-405d-90dc-7a796f92a38d
date:
- Sat, 23 Apr 2016 07:11:54 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:11:55 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b8a6d8cd-0858-4277-a259-503b9cc4c06e
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"a9836c4e-63c9-4d01-8bb8-1ddfdc06fb7f"
vary:
- Accept-Encoding
x-ms-request-id:
- 42f11afc-dc5e-4876-8166-fce1ff5008be
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14990'
x-ms-correlation-request-id:
- b6b5f6d4-940d-4c98-b8fd-961ec3dc1b59
x-ms-routing-request-id:
- WESTUS:20160423T071157Z:b6b5f6d4-940d-4c98-b8fd-961ec3dc1b59
date:
- Sat, 23 Apr 2016 07:11:56 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"a9836c4e-63c9-4d01-8bb8-1ddfdc06fb7f\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"fbb22475-dbd0-4ba1-822b-7668179fcb0f\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"a9836c4e-63c9-4d01-8bb8-1ddfdc06fb7f\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:11:57 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b82257c6-813d-4099-8328-e7e01c6edc31
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '373'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- af41befd-1afa-446d-810f-0f5947cd5706
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/af41befd-1afa-446d-810f-0f5947cd5706?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1193'
x-ms-correlation-request-id:
- f889a792-15f6-4a2f-855e-94efe122716d
x-ms-routing-request-id:
- WESTUS:20160423T071157Z:f889a792-15f6-4a2f-855e-94efe122716d
date:
- Sat, 23 Apr 2016 07:11:57 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"92335ee2-4332-401d-a656-3bdbbe8725ac\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:11:58 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/af41befd-1afa-446d-810f-0f5947cd5706?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 55062069-c686-44b1-a914-55c7f2bc2418
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 12d7595a-27c0-42ca-b483-883a1ddf6f6d
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-correlation-request-id:
- 748c74ba-b161-4e3b-bf5a-d4f330c76584
x-ms-routing-request-id:
- WESTUS:20160423T071228Z:748c74ba-b161-4e3b-bf5a-d4f330c76584
date:
- Sat, 23 Apr 2016 07:12:28 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:12:28 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 166e6bc6-21a8-487b-b396-a62f242c559e
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"0a16fed6-bf61-4685-a6a6-a1f0592a7650"
vary:
- Accept-Encoding
x-ms-request-id:
- 32e7ba09-50ff-4032-8744-4bdd6e1e0872
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-correlation-request-id:
- 1a47d267-1d1f-422c-b5c9-e3f948b33142
x-ms-routing-request-id:
- WESTUS:20160423T071228Z:1a47d267-1d1f-422c-b5c9-e3f948b33142
date:
- Sat, 23 Apr 2016 07:12:28 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"0a16fed6-bf61-4685-a6a6-a1f0592a7650\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:12:29 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843"}}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2aac430d-e387-4866-9243-39be8853ed67
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '656'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 88a3e9c3-2d3c-4f97-ab2e-9d24ac59619b
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/88a3e9c3-2d3c-4f97-ab2e-9d24ac59619b?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- 33816caa-9e4d-4fe4-bca4-28ff363415e7
x-ms-routing-request-id:
- WESTUS:20160423T071229Z:33816caa-9e4d-4fe4-bca4-28ff363415e7
date:
- Sat, 23 Apr 2016 07:12:29 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"71eab541-fcf9-4b3e-8063-77ac865f9e43\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"02ecaab0-4405-4354-b54b-244ba3030bcb\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:12:30 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/88a3e9c3-2d3c-4f97-ab2e-9d24ac59619b?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0a6a199c-cde4-446a-8676-938cf2151cdc
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 3fbc4df8-f5ab-42d2-8ddb-0e198033bdc3
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14988'
x-ms-correlation-request-id:
- b66319f7-9845-4248-9147-d130e47a956b
x-ms-routing-request-id:
- WESTUS:20160423T071300Z:b66319f7-9845-4248-9147-d130e47a956b
date:
- Sat, 23 Apr 2016 07:12:59 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:13:00 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a7d55dda-ca6e-472f-bdce-277ba3789245
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"c14edafe-a368-4ae4-9755-560c562fffd1"
vary:
- Accept-Encoding
x-ms-request-id:
- 2ec9dcee-734f-45af-b1b9-57608927c8cd
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14988'
x-ms-correlation-request-id:
- f84434dc-953c-4b75-b70e-c839b6662e67
x-ms-routing-request-id:
- WESTUS:20160423T071300Z:f84434dc-953c-4b75-b70e-c839b6662e67
date:
- Sat, 23 Apr 2016 07:12:59 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"c14edafe-a368-4ae4-9755-560c562fffd1\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"02ecaab0-4405-4354-b54b-244ba3030bcb\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:13:00 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"nic8474","location":"westus","properties":{"ipConfigurations":[{"properties":{"privateIPAllocationMethod":"Dynamic","subnet":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647","properties":{"addressPrefix":"10.0.1.0/24","provisioningState":"Succeeded"},"name":"subnet4857647","etag":"W/\"0a16fed6-bf61-4685-a6a6-a1f0592a7650\""},"publicIPAddress":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363","name":"ip_name8363","type":"Microsoft.Network/publicIPAddresses","location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843","fqdn":"domain734843.westus.cloudapp.azure.com"},"idleTimeoutInMinutes":4,"resourceGuid":"02ecaab0-4405-4354-b54b-244ba3030bcb","provisioningState":"Succeeded"},"etag":"W/\"c14edafe-a368-4ae4-9755-560c562fffd1\""}},"name":"ip_name_36282"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4c93026e-8d73-4211-bde8-5177f8515a0c
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1573'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-request-id:
- 3b918e97-57f8-4fa6-8aca-0a27cd6b274b
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/3b918e97-57f8-4fa6-8aca-0a27cd6b274b?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1193'
x-ms-correlation-request-id:
- 3dd82484-f6d4-4ff3-a5a1-109a699c5b29
x-ms-routing-request-id:
- WESTUS:20160423T071301Z:3dd82484-f6d4-4ff3-a5a1-109a699c5b29
date:
- Sat, 23 Apr 2016 07:13:00 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"nic8474\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474\",\r\n
\ \"etag\": \"W/\\\"9610677c-bb91-4cb4-9fca-6b9bba2e2e09\\\"\",\r\n \"type\":
\"Microsoft.Network/networkInterfaces\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"1be1427e-5d0f-4313-bfda-278095529259\",\r\n \"ipConfigurations\": [\r\n
\ {\r\n \"name\": \"ip_name_36282\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474/ipConfigurations/ip_name_36282\",\r\n
\ \"etag\": \"W/\\\"9610677c-bb91-4cb4-9fca-6b9bba2e2e09\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"privateIPAddress\": \"10.0.1.4\",\r\n \"privateIPAllocationMethod\":
\"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\"\r\n
\ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\"\r\n
\ },\r\n \"primary\": true\r\n }\r\n }\r\n ],\r\n
\ \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\":
[]\r\n },\r\n \"enableIPForwarding\": false\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:13:01 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 52b5253b-410e-47b5-96df-58bfe962247f
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '0'
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operationResults/e80c42f8-f846-42d6-a5ad-ce144b63f2b9?api-version=2015-06-15
retry-after: '1'
x-ms-request-id:
- e80c42f8-f846-42d6-a5ad-ce144b63f2b9
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/e80c42f8-f846-42d6-a5ad-ce144b63f2b9?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1192'
x-ms-correlation-request-id:
- e53848e1-2df5-4dbf-83f5-36dc63b91aac
x-ms-routing-request-id:
- WESTUS:20160423T071301Z:e53848e1-2df5-4dbf-83f5-36dc63b91aac
date:
- Sat, 23 Apr 2016 07:13:01 GMT
connection:
- close
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:13:02 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/e80c42f8-f846-42d6-a5ad-ce144b63f2b9?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 06128c07-4d75-4ff4-9891-350d00a60eea
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- eb60f394-30af-496d-b947-b8cb8e4a7e74
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14991'
x-ms-correlation-request-id:
- 86beca1e-f6c1-48e8-bfcc-d7f02ff54026
x-ms-routing-request-id:
- WESTUS:20160423T071333Z:86beca1e-f6c1-48e8-bfcc-d7f02ff54026
date:
- Sat, 23 Apr 2016 07:13:32 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:13:33 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 84a05066-c181-44a0-ba83-d56e9c30e24f
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 083f8abf-e9bb-4512-96aa-d6f8dd8aa8aa
x-ms-correlation-request-id:
- 083f8abf-e9bb-4512-96aa-d6f8dd8aa8aa
x-ms-routing-request-id:
- WESTUS:20160423T071333Z:083f8abf-e9bb-4512-96aa-d6f8dd8aa8aa
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:13:33 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:13:33 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 676ba511-2916-4317-844d-eab603fe0d11
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14990'
x-ms-request-id:
- 9a466ef2-a0b1-4b7c-97b3-37067b139afe
x-ms-correlation-request-id:
- 9a466ef2-a0b1-4b7c-97b3-37067b139afe
x-ms-routing-request-id:
- WESTUS:20160423T071534Z:9a466ef2-a0b1-4b7c-97b3-37067b139afe
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:15:34 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:15:35 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,474 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 47ffdab7-46a5-49ef-b3d0-42631b0cb8a8
client-request-id:
- 5410a1b3-b2eb-4d10-b0ea-5f10e83c009f
x-ms-gateway-service-instanceid:
- ESTSFE_IN_565
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:45:22 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461519923","not_before":"1461516023","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:45:22 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0bfe3b4f-aa08-49d8-918c-577c1b98e171
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 6c11abdc-2d55-4413-89e6-48c848440a6d
x-ms-correlation-request-id:
- 6c11abdc-2d55-4413-89e6-48c848440a6d
x-ms-routing-request-id:
- WESTUS:20160424T164523Z:6c11abdc-2d55-4413-89e6-48c848440a6d
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:45:23 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:45:23 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843"}}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b27276ea-12e2-41c5-a5c1-d36ca363d70b
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '656'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- cb8fc212-3059-44f3-a0e9-ecb5c193cd0c
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/cb8fc212-3059-44f3-a0e9-ecb5c193cd0c?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- aaeeeafe-2e1d-4e30-8357-82cd55dbbb53
x-ms-routing-request-id:
- WESTUS:20160424T164524Z:aaeeeafe-2e1d-4e30-8357-82cd55dbbb53
date:
- Sun, 24 Apr 2016 16:45:24 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"c74a8042-e146-462d-bec9-acb9a19e950b\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"189f7288-8d02-4be6-9ebf-a79f28c6e63a\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:45:24 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/cb8fc212-3059-44f3-a0e9-ecb5c193cd0c?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 33d4a0d3-49fe-48b1-9d20-124b9e11af51
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- ff58af20-3fa7-40e0-9dda-4c662b9abf35
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- 9e7bb2b6-b87e-42d1-ad34-955e755bd16b
x-ms-routing-request-id:
- WESTUS:20160424T164555Z:9e7bb2b6-b87e-42d1-ad34-955e755bd16b
date:
- Sun, 24 Apr 2016 16:45:55 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:45:54 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f033a43c-7337-4323-900a-4d346d3a6287
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"f0dca8fd-3a4b-4e26-a712-895a3ca22f8e"
vary:
- Accept-Encoding
x-ms-request-id:
- 71af737f-8151-468d-b567-bfbf0b3098c7
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- ba994e45-5b64-4772-a1ce-d0353c61f595
x-ms-routing-request-id:
- WESTUS:20160424T164555Z:ba994e45-5b64-4772-a1ce-d0353c61f595
date:
- Sun, 24 Apr 2016 16:45:55 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"f0dca8fd-3a4b-4e26-a712-895a3ca22f8e\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"189f7288-8d02-4be6-9ebf-a79f28c6e63a\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:45:55 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- db36e61c-e641-4eb5-8c87-ee19e9de80a0
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '0'
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operationResults/c28350a3-7898-4a9d-af66-27eee0fc298e?api-version=2015-06-15
retry-after: '1'
x-ms-request-id:
- c28350a3-7898-4a9d-af66-27eee0fc298e
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/c28350a3-7898-4a9d-af66-27eee0fc298e?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-correlation-request-id:
- 7281b4d3-af62-4d90-93dd-132fe577b333
x-ms-routing-request-id:
- WESTUS:20160424T164556Z:7281b4d3-af62-4d90-93dd-132fe577b333
date:
- Sun, 24 Apr 2016 16:45:55 GMT
connection:
- close
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:45:55 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/c28350a3-7898-4a9d-af66-27eee0fc298e?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 752e1cc9-d5fe-448c-97ac-0eb85c4136d3
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 408edbab-05e1-4f49-9ce2-8c8655841880
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- 75652908-ec48-4737-ad12-3feee2e1ed9d
x-ms-routing-request-id:
- WESTUS:20160424T164626Z:75652908-ec48-4737-ad12-3feee2e1ed9d
date:
- Sun, 24 Apr 2016 16:46:26 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:46:26 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 9f4e3d81-c77b-4293-b00d-0d0b5dbb22ee
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 2fe17557-ecc3-45dc-86c9-48fda583a8f6
x-ms-correlation-request-id:
- 2fe17557-ecc3-45dc-86c9-48fda583a8f6
x-ms-routing-request-id:
- WESTUS:20160424T164627Z:2fe17557-ecc3-45dc-86c9-48fda583a8f6
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:46:26 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:46:26 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e5112f68-6aab-402f-9bd1-e481985fc753
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- de97efc5-7720-4bb8-abc6-6e58c29787ed
x-ms-correlation-request-id:
- de97efc5-7720-4bb8-abc6-6e58c29787ed
x-ms-routing-request-id:
- WESTUS:20160424T164727Z:de97efc5-7720-4bb8-abc6-6e58c29787ed
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:47:27 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:47:27 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,576 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 81e4ab2b-1c22-4977-a81c-f8ccfdf1f7ba
client-request-id:
- e8a5b766-4aba-4282-a126-345d5b000ce7
x-ms-gateway-service-instanceid:
- ESTSFE_IN_167
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:21:56 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461518517","not_before":"1461514617","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:21:57 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6129b130-d854-4bc2-b57a-a4996919948f
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 39423560-3280-4edc-963b-81f68de9fd83
x-ms-correlation-request-id:
- 39423560-3280-4edc-963b-81f68de9fd83
x-ms-routing-request-id:
- WESTUS:20160424T162157Z:39423560-3280-4edc-963b-81f68de9fd83
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:21:57 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:21:57 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"sec73484","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0f86dd14-cbe2-486a-927d-c89dcf408126
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '5196'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- e85bf15b-c25b-4003-af1b-af4025f3e75c
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/e85bf15b-c25b-4003-af1b-af4025f3e75c?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 35ba3c92-780c-4f8c-8e4f-fa949baf3f5e
x-ms-routing-request-id:
- WESTUS:20160424T162158Z:35ba3c92-780c-4f8c-8e4f-fa949baf3f5e
date:
- Sun, 24 Apr 2016 16:21:57 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"06d021a6-664e-438b-be64-9c2ca2206f20\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"95cb7dff-c3a3-419d-88e9-335ace1babce\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"06d021a6-664e-438b-be64-9c2ca2206f20\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"06d021a6-664e-438b-be64-9c2ca2206f20\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"06d021a6-664e-438b-be64-9c2ca2206f20\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"06d021a6-664e-438b-be64-9c2ca2206f20\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"06d021a6-664e-438b-be64-9c2ca2206f20\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"06d021a6-664e-438b-be64-9c2ca2206f20\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:21:58 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/e85bf15b-c25b-4003-af1b-af4025f3e75c?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- abc5eac0-63b2-4590-b63c-a3c4ca2411db
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- a32ea227-b101-4a10-aa9f-1797c5e55a2e
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 591e119f-a281-4eea-9d6b-0c6962137484
x-ms-routing-request-id:
- WESTUS:20160424T162229Z:591e119f-a281-4eea-9d6b-0c6962137484
date:
- Sun, 24 Apr 2016 16:22:28 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:22:28 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 8db0da41-ea9c-441a-8dca-4c555dfae7a7
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"cb2c283d-0198-4410-8577-1fe0eb9292df"
vary:
- Accept-Encoding
x-ms-request-id:
- bd353406-404b-47c3-9632-2587db95c9af
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- 58325cf2-74a9-4d3f-967d-796f939e93d1
x-ms-routing-request-id:
- WESTUS:20160424T162229Z:58325cf2-74a9-4d3f-967d-796f939e93d1
date:
- Sun, 24 Apr 2016 16:22:29 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"cb2c283d-0198-4410-8577-1fe0eb9292df\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"95cb7dff-c3a3-419d-88e9-335ace1babce\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"cb2c283d-0198-4410-8577-1fe0eb9292df\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"cb2c283d-0198-4410-8577-1fe0eb9292df\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"cb2c283d-0198-4410-8577-1fe0eb9292df\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"cb2c283d-0198-4410-8577-1fe0eb9292df\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"cb2c283d-0198-4410-8577-1fe0eb9292df\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"cb2c283d-0198-4410-8577-1fe0eb9292df\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:22:28 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- d6e277c2-e2d7-40d8-b777-dd6ade18cfb3
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '0'
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operationResults/df5dae6b-8652-4563-8ac4-3b53eded77ba?api-version=2015-06-15
retry-after: '1'
x-ms-request-id:
- df5dae6b-8652-4563-8ac4-3b53eded77ba
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/df5dae6b-8652-4563-8ac4-3b53eded77ba?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 672f003f-d3b9-4852-8122-cba73ecb1f41
x-ms-routing-request-id:
- WESTUS:20160424T162230Z:672f003f-d3b9-4852-8122-cba73ecb1f41
date:
- Sun, 24 Apr 2016 16:22:29 GMT
connection:
- close
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:22:29 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/df5dae6b-8652-4563-8ac4-3b53eded77ba?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- fd7b6363-8a5f-4b1a-89f6-49d9251fb002
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 0cf91bef-5c07-4a20-b431-797c082272ad
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- 201eae0e-b02a-4396-a43b-63383195ef39
x-ms-routing-request-id:
- WESTUS:20160424T162300Z:201eae0e-b02a-4396-a43b-63383195ef39
date:
- Sun, 24 Apr 2016 16:23:00 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:23:00 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 543f0992-8091-470b-9bd3-8d883077e09a
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 6cdd7c75-7c95-4a23-add1-0ce996bd895b
x-ms-correlation-request-id:
- 6cdd7c75-7c95-4a23-add1-0ce996bd895b
x-ms-routing-request-id:
- WESTUS:20160424T162301Z:6cdd7c75-7c95-4a23-add1-0ce996bd895b
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:23:00 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:23:00 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- efd5d54a-7ebf-4b24-ad1e-1a3f7e6da9c0
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-request-id:
- 7457565e-ca7b-4c18-a716-504448fb2679
x-ms-correlation-request-id:
- 7457565e-ca7b-4c18-a716-504448fb2679
x-ms-routing-request-id:
- WESTUS:20160424T162402Z:7457565e-ca7b-4c18-a716-504448fb2679
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:24:01 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:24:01 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,744 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 88511fdc-48f4-4bc8-ae9a-5c1543d05374
client-request-id:
- 4ebd5505-d972-4aa8-baaa-fb1dfee2d32a
x-ms-gateway-service-instanceid:
- ESTSFE_IN_391
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:59:09 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461520750","not_before":"1461516850","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:59:10 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 3c703c15-bf15-47d9-acfd-d043caa094e6
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 821e63ee-9a61-45ae-a7bd-e376aac842aa
x-ms-correlation-request-id:
- 821e63ee-9a61-45ae-a7bd-e376aac842aa
x-ms-routing-request-id:
- WESTUS:20160424T165910Z:821e63ee-9a61-45ae-a7bd-e376aac842aa
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:59:10 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:59:10 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"sec73484","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 235b74c9-9053-4129-af67-fa87d2b4f1d5
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '5196'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 189134bf-e541-412b-9f86-35c1bb2e56df
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/189134bf-e541-412b-9f86-35c1bb2e56df?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- 788027b1-c775-421d-b540-282cade531ed
x-ms-routing-request-id:
- WESTUS:20160424T165911Z:788027b1-c775-421d-b540-282cade531ed
date:
- Sun, 24 Apr 2016 16:59:10 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"ae45014b-8286-42a0-94ff-778f9dcffbc4\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"e7a9890b-3924-4396-9ea0-66ff61ab5e6f\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"ae45014b-8286-42a0-94ff-778f9dcffbc4\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"ae45014b-8286-42a0-94ff-778f9dcffbc4\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"ae45014b-8286-42a0-94ff-778f9dcffbc4\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"ae45014b-8286-42a0-94ff-778f9dcffbc4\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"ae45014b-8286-42a0-94ff-778f9dcffbc4\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"ae45014b-8286-42a0-94ff-778f9dcffbc4\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:59:11 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/189134bf-e541-412b-9f86-35c1bb2e56df?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2557dad7-b8c8-4d5b-97fb-bad227138923
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 2de5185a-82a8-4969-a630-48c9c57f8bd2
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- 7cceba24-382d-40b6-9225-9b722b4f8b33
x-ms-routing-request-id:
- WESTUS:20160424T165941Z:7cceba24-382d-40b6-9225-9b722b4f8b33
date:
- Sun, 24 Apr 2016 16:59:41 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:59:41 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- bd3793a5-6c5e-41d9-b03b-c81ac421b0a8
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"f56dd7a0-18b2-4ecb-bd17-cf61df245474"
vary:
- Accept-Encoding
x-ms-request-id:
- 91e9213b-f951-4124-bd6b-68af810ec3e2
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- 3735e5ba-66bf-4c2e-a951-13b4e17baa10
x-ms-routing-request-id:
- WESTUS:20160424T165942Z:3735e5ba-66bf-4c2e-a951-13b4e17baa10
date:
- Sun, 24 Apr 2016 16:59:41 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"f56dd7a0-18b2-4ecb-bd17-cf61df245474\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"e7a9890b-3924-4396-9ea0-66ff61ab5e6f\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"f56dd7a0-18b2-4ecb-bd17-cf61df245474\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"f56dd7a0-18b2-4ecb-bd17-cf61df245474\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"f56dd7a0-18b2-4ecb-bd17-cf61df245474\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"f56dd7a0-18b2-4ecb-bd17-cf61df245474\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"f56dd7a0-18b2-4ecb-bd17-cf61df245474\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"f56dd7a0-18b2-4ecb-bd17-cf61df245474\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:59:41 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"protocol":"Udp","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","direction":"Outbound","sourcePortRange":"656","destinationPortRange":"123-3500","priority":4095},"name":"sec_rule_7428"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 70ffa7df-8df9-4769-af53-a8e712d652e5
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '590'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 991028fb-ebb3-41dd-a2b7-6828a9de6420
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/991028fb-ebb3-41dd-a2b7-6828a9de6420?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- f131448a-4e69-4b39-9b88-4631498c789f
x-ms-routing-request-id:
- WESTUS:20160424T165942Z:f131448a-4e69-4b39-9b88-4631498c789f
date:
- Sun, 24 Apr 2016 16:59:42 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec_rule_7428\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428\",\r\n
\ \"etag\": \"W/\\\"0b05db65-da0e-4e69-bdee-ffafcbeed27d\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"Udp\",\r\n
\ \"sourcePortRange\": \"656\",\r\n \"destinationPortRange\": \"123-3500\",\r\n
\ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Deny\",\r\n \"priority\": 4095,\r\n \"direction\":
\"Outbound\"\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:59:42 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/991028fb-ebb3-41dd-a2b7-6828a9de6420?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 46d947ce-5d7a-471d-bc1c-f91de9b32f14
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- c849f214-f601-4fa2-b085-01af57b8dfd6
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 94b31795-62d2-4bd0-9a41-01700c5457b4
x-ms-routing-request-id:
- WESTUS:20160424T170013Z:94b31795-62d2-4bd0-9a41-01700c5457b4
date:
- Sun, 24 Apr 2016 17:00:13 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:00:12 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a55cc12f-d4a2-4c40-915c-c2152aa6c31b
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"30703e4a-adf5-4c47-9af9-7c9136abe05d"
vary:
- Accept-Encoding
x-ms-request-id:
- 173cef36-314c-4182-b813-029abe527e00
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- f425d99f-a7cd-4cb2-8d24-13869eb0af21
x-ms-routing-request-id:
- WESTUS:20160424T170013Z:f425d99f-a7cd-4cb2-8d24-13869eb0af21
date:
- Sun, 24 Apr 2016 17:00:13 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec_rule_7428\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428\",\r\n
\ \"etag\": \"W/\\\"30703e4a-adf5-4c47-9af9-7c9136abe05d\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"Udp\",\r\n
\ \"sourcePortRange\": \"656\",\r\n \"destinationPortRange\": \"123-3500\",\r\n
\ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Deny\",\r\n \"priority\": 4095,\r\n \"direction\":
\"Outbound\"\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:00:13 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 5d738601-584e-43c9-9324-6dca90d3fff9
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '0'
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operationResults/6083606e-9efb-4b12-a6bc-3819d689d27e?api-version=2015-06-15
retry-after: '1'
x-ms-request-id:
- 6083606e-9efb-4b12-a6bc-3819d689d27e
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/6083606e-9efb-4b12-a6bc-3819d689d27e?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 00559ab2-cc1b-4d19-b49e-d950aff6b82b
x-ms-routing-request-id:
- WESTUS:20160424T170014Z:00559ab2-cc1b-4d19-b49e-d950aff6b82b
date:
- Sun, 24 Apr 2016 17:00:14 GMT
connection:
- close
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:00:14 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/6083606e-9efb-4b12-a6bc-3819d689d27e?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 9bf1a652-63b4-4eb4-9f94-45158cfd1837
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 45a41d69-6708-4260-8589-d706e3ef2eb2
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 90cdff48-8da1-4b23-9ac9-31e027ce6019
x-ms-routing-request-id:
- WESTUS:20160424T170044Z:90cdff48-8da1-4b23-9ac9-31e027ce6019
date:
- Sun, 24 Apr 2016 17:00:44 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:00:44 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0a1bccc6-5e46-481b-b473-6ae8ac6ff7f8
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 2d1971e5-900b-48a0-8002-58b515d316b7
x-ms-correlation-request-id:
- 2d1971e5-900b-48a0-8002-58b515d316b7
x-ms-routing-request-id:
- WESTUS:20160424T170045Z:2d1971e5-900b-48a0-8002-58b515d316b7
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:00:45 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:00:44 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c9c6775e-9021-4e4b-819f-f954ff9543cb
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-request-id:
- 712676b8-a6e8-4f4b-a86a-c736498c7f45
x-ms-correlation-request-id:
- 712676b8-a6e8-4f4b-a86a-c736498c7f45
x-ms-routing-request-id:
- WESTUS:20160424T170246Z:712676b8-a6e8-4f4b-a86a-c736498c7f45
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:02:46 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:02:46 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,646 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 2a6d98aa-b464-4dbc-86ad-ac56265c59e2
client-request-id:
- 0cc3ffc2-3f12-4638-b6f8-13309533566b
x-ms-gateway-service-instanceid:
- ESTSFE_IN_580
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:21:03 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461522065","not_before":"1461518165","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:21:04 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ed92a1bd-10e1-4aa7-8dbc-944a6899c60a
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 26a1885d-5d46-45c7-be63-9ec539552363
x-ms-correlation-request-id:
- 26a1885d-5d46-45c7-be63-9ec539552363
x-ms-routing-request-id:
- WESTUS:20160424T172105Z:26a1885d-5d46-45c7-be63-9ec539552363
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:21:04 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:21:05 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1d0c524d-3387-4ced-ac36-35001a34b99e
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 7429ebbe-0892-44ae-a6b3-c8798d6bef1d
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/7429ebbe-0892-44ae-a6b3-c8798d6bef1d?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-correlation-request-id:
- 3da936da-83ec-4905-8b24-f25e84f050b5
x-ms-routing-request-id:
- WESTUS:20160424T172106Z:3da936da-83ec-4905-8b24-f25e84f050b5
date:
- Sun, 24 Apr 2016 17:21:06 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"38d77a2e-aeb6-4c49-b63c-a392d0d6e8e3\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"da96a07c-2adc-4247-8bd2-cd60cf221bd7\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"38d77a2e-aeb6-4c49-b63c-a392d0d6e8e3\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:21:06 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/7429ebbe-0892-44ae-a6b3-c8798d6bef1d?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 64f8df4f-e7b2-4c5f-869e-6bcc6b39b7e7
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 04d07203-edb8-45bd-916e-a336cc5a861c
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 5927a1b9-68bf-480a-b417-8c1489208c46
x-ms-routing-request-id:
- WESTUS:20160424T172137Z:5927a1b9-68bf-480a-b417-8c1489208c46
date:
- Sun, 24 Apr 2016 17:21:37 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:21:37 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ade98a15-7b78-4c58-97a0-654762fe5a24
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"101c972f-b370-4051-82c3-3d39f8fef74a"
vary:
- Accept-Encoding
x-ms-request-id:
- 32339b41-fa16-4d5d-905b-736e001b7b62
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- e1dafcb2-49ac-4952-b361-217d0565541b
x-ms-routing-request-id:
- WESTUS:20160424T172138Z:e1dafcb2-49ac-4952-b361-217d0565541b
date:
- Sun, 24 Apr 2016 17:21:37 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"101c972f-b370-4051-82c3-3d39f8fef74a\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"da96a07c-2adc-4247-8bd2-cd60cf221bd7\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"101c972f-b370-4051-82c3-3d39f8fef74a\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:21:38 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 9d94bfed-cb0f-495a-9346-1eb385362a72
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '373'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 3ec088d5-9a99-411f-8e98-0649b47e0793
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/3ec088d5-9a99-411f-8e98-0649b47e0793?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 77345e63-165f-4925-a813-e993bf06e76c
x-ms-routing-request-id:
- WESTUS:20160424T172139Z:77345e63-165f-4925-a813-e993bf06e76c
date:
- Sun, 24 Apr 2016 17:21:38 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"60ed2646-45d9-4306-be83-3fc4d50581aa\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:21:38 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/3ec088d5-9a99-411f-8e98-0649b47e0793?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 53eed43c-f6eb-451f-8f20-4149e6dd23e0
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- fe29f085-f6cc-4094-9886-9315d9cee236
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-correlation-request-id:
- e306a38e-177b-4cd4-a5e1-65901c6ec9d4
x-ms-routing-request-id:
- WESTUS:20160424T172209Z:e306a38e-177b-4cd4-a5e1-65901c6ec9d4
date:
- Sun, 24 Apr 2016 17:22:09 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:22:09 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f7364860-a340-4174-8542-0534a409a87a
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"4a836b7e-2c21-47e1-93ce-255a604aa498"
vary:
- Accept-Encoding
x-ms-request-id:
- 22d25087-1def-413e-a1a1-f30e4b9eb010
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- 4c38743b-68c4-4bc9-a62b-b6179e9a3382
x-ms-routing-request-id:
- WESTUS:20160424T172210Z:4c38743b-68c4-4bc9-a62b-b6179e9a3382
date:
- Sun, 24 Apr 2016 17:22:10 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"4a836b7e-2c21-47e1-93ce-255a604aa498\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:22:10 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4c5950bb-71b8-4ea9-ad0f-f1f9d0df1727
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '0'
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operationResults/4b995bd7-5355-406c-a70b-e789b33b1921?api-version=2015-06-15
retry-after: '1'
x-ms-request-id:
- 4b995bd7-5355-406c-a70b-e789b33b1921
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/4b995bd7-5355-406c-a70b-e789b33b1921?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- c49486f7-539a-447e-b757-cb8fae982a7b
x-ms-routing-request-id:
- WESTUS:20160424T172211Z:c49486f7-539a-447e-b757-cb8fae982a7b
date:
- Sun, 24 Apr 2016 17:22:10 GMT
connection:
- close
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:22:10 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/4b995bd7-5355-406c-a70b-e789b33b1921?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e983e629-d243-4f19-b4f8-e933a1863a6b
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 6235de73-ee20-46d5-8825-afd8559836b9
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 06e3c1ff-92c3-44d0-b5ea-997e19e47c2c
x-ms-routing-request-id:
- WESTUS:20160424T172242Z:06e3c1ff-92c3-44d0-b5ea-997e19e47c2c
date:
- Sun, 24 Apr 2016 17:22:42 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:22:42 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 718cc5a6-17ba-4d1c-8447-a96ca5a2dcce
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- 2f2d841a-628a-424d-8e82-fde4cf831e67
x-ms-correlation-request-id:
- 2f2d841a-628a-424d-8e82-fde4cf831e67
x-ms-routing-request-id:
- WESTUS:20160424T172243Z:2f2d841a-628a-424d-8e82-fde4cf831e67
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:22:42 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:22:42 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6334fe94-122f-4141-b002-9a8db1295d05
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-request-id:
- 1732d6c5-df94-4c75-80e0-767511d66d24
x-ms-correlation-request-id:
- 1732d6c5-df94-4c75-80e0-767511d66d24
x-ms-routing-request-id:
- WESTUS:20160424T172445Z:1732d6c5-df94-4c75-80e0-767511d66d24
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:24:45 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:24:45 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,484 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- dae0d7ae-4d5e-44c8-9ea4-79460d7b0e10
client-request-id:
- 43c69158-6bbd-4b77-99d3-c064131fbc51
x-ms-gateway-service-instanceid:
- ESTSFE_IN_226
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:57:13 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461524231","not_before":"1461520331","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:57:11 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0f8909e1-0b2e-4ea8-883a-3297072923cf
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 6d0d22e9-52cc-44fb-a8a7-755df6f8bb66
x-ms-correlation-request-id:
- 6d0d22e9-52cc-44fb-a8a7-755df6f8bb66
x-ms-routing-request-id:
- WESTUS:20160424T175712Z:6d0d22e9-52cc-44fb-a8a7-755df6f8bb66
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:57:11 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:57:11 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 77dc09ed-d7a5-48dc-bfec-7d473a547888
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- d4d0b05f-45ba-403e-99fa-b45f6d10c6e3
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/d4d0b05f-45ba-403e-99fa-b45f6d10c6e3?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- b57228e3-1703-49ca-9639-a3dd4b54c395
x-ms-routing-request-id:
- WESTUS:20160424T175714Z:b57228e3-1703-49ca-9639-a3dd4b54c395
date:
- Sun, 24 Apr 2016 17:57:13 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"dc081dff-93a3-407a-8f54-7565e6971d96\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"a66e5c01-8235-4812-840a-a58ef0665720\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"dc081dff-93a3-407a-8f54-7565e6971d96\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:57:13 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/d4d0b05f-45ba-403e-99fa-b45f6d10c6e3?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 683ebb63-f1c1-41c4-8eab-7e55bfaf633e
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 2507bf19-d3ae-46ec-9ddb-e7464898458a
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 73bef9fa-54b8-4312-81b0-8b4e4c59aa58
x-ms-routing-request-id:
- WESTUS:20160424T175744Z:73bef9fa-54b8-4312-81b0-8b4e4c59aa58
date:
- Sun, 24 Apr 2016 17:57:43 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:57:44 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ed2fae4f-05ac-4552-978e-825732fed816
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"0e54ad9f-64fc-4b7d-a5e0-1b913bc1d930"
vary:
- Accept-Encoding
x-ms-request-id:
- b1c0dd3b-6885-41af-a537-cf62f5e780fb
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14992'
x-ms-correlation-request-id:
- 7d8f507f-322e-4391-9bf8-f75e5ba3554e
x-ms-routing-request-id:
- WESTUS:20160424T175744Z:7d8f507f-322e-4391-9bf8-f75e5ba3554e
date:
- Sun, 24 Apr 2016 17:57:44 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"0e54ad9f-64fc-4b7d-a5e0-1b913bc1d930\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"a66e5c01-8235-4812-840a-a58ef0665720\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"0e54ad9f-64fc-4b7d-a5e0-1b913bc1d930\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:57:44 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- d789397c-6e13-4a4b-aaaf-31097f5b26e4
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '0'
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operationResults/78602164-2e5e-49dd-a8b9-ce5163644b0f?api-version=2015-06-15
retry-after: '1'
x-ms-request-id:
- 78602164-2e5e-49dd-a8b9-ce5163644b0f
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/78602164-2e5e-49dd-a8b9-ce5163644b0f?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- 72c82a5b-d4db-4477-a4d8-e4b5fa532650
x-ms-routing-request-id:
- WESTUS:20160424T175745Z:72c82a5b-d4db-4477-a4d8-e4b5fa532650
date:
- Sun, 24 Apr 2016 17:57:44 GMT
connection:
- close
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:57:45 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/78602164-2e5e-49dd-a8b9-ce5163644b0f?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- eae57a99-c9ef-4fef-9c74-3cebd076b12f
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 8c34d398-c5a2-413a-8a60-80fcc98eb095
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- 9059f4a6-0c83-44ca-ac62-db3dcabd76af
x-ms-routing-request-id:
- WESTUS:20160424T175815Z:9059f4a6-0c83-44ca-ac62-db3dcabd76af
date:
- Sun, 24 Apr 2016 17:58:15 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:58:15 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1c45f76d-e8bb-4d10-a5da-bd1dea28bf32
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- 38e0d2a9-89b9-4a5b-8a36-982504d79538
x-ms-correlation-request-id:
- 38e0d2a9-89b9-4a5b-8a36-982504d79538
x-ms-routing-request-id:
- WESTUS:20160424T175816Z:38e0d2a9-89b9-4a5b-8a36-982504d79538
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:58:16 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:58:16 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2eef5a99-75d9-4b57-9ebc-5109741ecb8f
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14991'
x-ms-request-id:
- b5da0f65-9d4f-4d79-8067-301144bc0818
x-ms-correlation-request-id:
- b5da0f65-9d4f-4d79-8067-301144bc0818
x-ms-routing-request-id:
- WESTUS:20160424T175916Z:b5da0f65-9d4f-4d79-8067-301144bc0818
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:59:16 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:59:16 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,317 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 721f78b2-f8fd-484c-94d6-0f9736c7cbc1
client-request-id:
- 187fe358-f7ef-479c-b245-02e4a829eb9f
x-ms-gateway-service-instanceid:
- ESTSFE_IN_503
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 05:16:19 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461392179","not_before":"1461388279","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:16:19 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 9744e862-815f-4e8d-bc99-5cf518139469
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 5722b4a2-2485-4d5a-90f6-d91f916ce9cb
x-ms-correlation-request-id:
- 5722b4a2-2485-4d5a-90f6-d91f916ce9cb
x-ms-routing-request-id:
- WESTUS:20160423T051620Z:5722b4a2-2485-4d5a-90f6-d91f916ce9cb
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:16:19 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:16:20 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"load_balancer_test","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 062bebde-96c8-43c0-bc14-d440c7f4a285
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '663'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-request-id:
- 7dbe2eca-d8e4-429b-9b2a-e70eab9bd6dc
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/7dbe2eca-d8e4-429b-9b2a-e70eab9bd6dc?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- ca0316ea-44c6-4f4b-8675-23c16553bdd0
x-ms-routing-request-id:
- WESTUS:20160423T051621Z:ca0316ea-44c6-4f4b-8675-23c16553bdd0
date:
- Sat, 23 Apr 2016 05:16:20 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"load_balancer_test\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test\",\r\n
\ \"etag\": \"W/\\\"68cfb5e9-d44a-4756-be51-9c23cbe7f405\\\"\",\r\n \"type\":
\"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fc236160-950e-4d9b-a531-83235d87226d\",\r\n
\ \"frontendIPConfigurations\": [],\r\n \"backendAddressPools\": [],\r\n
\ \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\":
[],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:16:21 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c3caeefe-d42a-4ff4-8287-0c1976e76f6d
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"68cfb5e9-d44a-4756-be51-9c23cbe7f405"
vary:
- Accept-Encoding
x-ms-request-id:
- 10009e7b-0575-4bfb-9030-ce41f2a1f029
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- 7041e2bd-be9b-4c49-a27a-174e41fe11f4
x-ms-routing-request-id:
- WESTUS:20160423T051622Z:7041e2bd-be9b-4c49-a27a-174e41fe11f4
date:
- Sat, 23 Apr 2016 05:16:21 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"load_balancer_test\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test\",\r\n
\ \"etag\": \"W/\\\"68cfb5e9-d44a-4756-be51-9c23cbe7f405\\\"\",\r\n \"type\":
\"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"fc236160-950e-4d9b-a531-83235d87226d\",\r\n
\ \"frontendIPConfigurations\": [],\r\n \"backendAddressPools\": [],\r\n
\ \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\":
[],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:16:22 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- d34e4cd4-d209-4ec7-b7f0-13e42ab34e3e
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 25399d5c-adff-4daa-ad29-8339ddd93df4
x-ms-correlation-request-id:
- 25399d5c-adff-4daa-ad29-8339ddd93df4
x-ms-routing-request-id:
- WESTUS:20160423T051622Z:25399d5c-adff-4daa-ad29-8339ddd93df4
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:16:21 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:16:22 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f2365c16-326a-4176-9a16-7748d33e6b36
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-request-id:
- a8d4347d-4148-452e-b417-51b6bca18ea2
x-ms-correlation-request-id:
- a8d4347d-4148-452e-b417-51b6bca18ea2
x-ms-routing-request-id:
- WESTUS:20160423T051824Z:a8d4347d-4148-452e-b417-51b6bca18ea2
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:18:23 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:18:24 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,426 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- f2dee670-b265-4e5e-821b-bc68151ebe82
client-request-id:
- 9d0af618-724f-4f03-9e45-acc72f41ea90
x-ms-gateway-service-instanceid:
- ESTSFE_IN_119
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 06:35:41 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461396943","not_before":"1461393043","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:35:43 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 7ac3ef4c-8e91-46e3-bda2-437d6fc09f3c
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- e969afd5-247f-44b2-9e2e-4d87dda4c0f8
x-ms-correlation-request-id:
- e969afd5-247f-44b2-9e2e-4d87dda4c0f8
x-ms-routing-request-id:
- WESTUS:20160423T063543Z:e969afd5-247f-44b2-9e2e-4d87dda4c0f8
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:35:43 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:35:44 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"local_gateway2579","location":"westus","properties":{"localNetworkAddressSpace":{"addressPrefixes":["192.168.0.0/16"]},"gatewayIpAddress":"192.168.3.7"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 22cf5f5a-5e9b-4b7d-aaa4-95edd80ca703
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '616'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 00b04da9-8dc5-40ae-918a-736720f328fb
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/00b04da9-8dc5-40ae-918a-736720f328fb?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-correlation-request-id:
- 5b910dee-3393-4366-9971-7f8c4d0c046a
x-ms-routing-request-id:
- WESTUS:20160423T063544Z:5b910dee-3393-4366-9971-7f8c4d0c046a
date:
- Sat, 23 Apr 2016 06:35:43 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"local_gateway2579\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579\",\r\n
\ \"etag\": \"W/\\\"dded26d6-bea7-4a64-b94c-acceba31c8b9\\\"\",\r\n \"type\":
\"Microsoft.Network/localNetworkGateways\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"1d21592d-9fd3-49a1-bffa-f51a99806dbb\",\r\n \"localNetworkAddressSpace\":
{\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n
\ },\r\n \"gatewayIpAddress\": \"192.168.3.7\"\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:35:44 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/00b04da9-8dc5-40ae-918a-736720f328fb?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0c98d23f-f0a7-4f22-919a-682b6fa91376
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- cde24980-8d02-4576-b643-dfedfb1f3c77
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14909'
x-ms-correlation-request-id:
- 140e379b-c50a-42a3-80af-03cf374598f6
x-ms-routing-request-id:
- WESTUS:20160423T063616Z:140e379b-c50a-42a3-80af-03cf374598f6
date:
- Sat, 23 Apr 2016 06:36:15 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:36:16 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c45546ec-0fb4-47c2-a4c5-e599dd5f330d
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"77957014-f25a-47bc-8479-fe6d4e1aa62d"
vary:
- Accept-Encoding
x-ms-request-id:
- 474d29fc-57d6-41eb-8105-8fc3707b9924
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 94f5c17d-afef-479f-bf49-f5ee87a6d1c5
x-ms-routing-request-id:
- WESTUS:20160423T063616Z:94f5c17d-afef-479f-bf49-f5ee87a6d1c5
date:
- Sat, 23 Apr 2016 06:36:15 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"local_gateway2579\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579\",\r\n
\ \"etag\": \"W/\\\"77957014-f25a-47bc-8479-fe6d4e1aa62d\\\"\",\r\n \"type\":
\"Microsoft.Network/localNetworkGateways\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"1d21592d-9fd3-49a1-bffa-f51a99806dbb\",\r\n \"localNetworkAddressSpace\":
{\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n
\ },\r\n \"gatewayIpAddress\": \"192.168.3.7\"\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:36:16 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c6077e5b-8c06-4810-b0f0-cdb652af40d8
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"77957014-f25a-47bc-8479-fe6d4e1aa62d"
vary:
- Accept-Encoding
x-ms-request-id:
- 0cbcc5ae-2e7f-4afe-91f6-d0ad3c996e1f
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14989'
x-ms-correlation-request-id:
- 3cb566cb-5f61-4828-b56e-d90828bb9803
x-ms-routing-request-id:
- WESTUS:20160423T063616Z:3cb566cb-5f61-4828-b56e-d90828bb9803
date:
- Sat, 23 Apr 2016 06:36:16 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"local_gateway2579\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways/local_gateway2579\",\r\n
\ \"etag\": \"W/\\\"77957014-f25a-47bc-8479-fe6d4e1aa62d\\\"\",\r\n \"type\":
\"Microsoft.Network/localNetworkGateways\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"1d21592d-9fd3-49a1-bffa-f51a99806dbb\",\r\n \"localNetworkAddressSpace\":
{\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n
\ },\r\n \"gatewayIpAddress\": \"192.168.3.7\"\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 06:36:17 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- fd182ba2-8437-428a-8a96-31a444031770
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- dd2af824-acac-43db-a190-4b20e2dd212a
x-ms-correlation-request-id:
- dd2af824-acac-43db-a190-4b20e2dd212a
x-ms-routing-request-id:
- WESTUS:20160423T063617Z:dd2af824-acac-43db-a190-4b20e2dd212a
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:36:16 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:36:17 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 49ccaaae-bf56-405b-8a14-ea89c2c58f42
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-request-id:
- 116eee10-9ae8-4869-bc69-ad37253b11be
x-ms-correlation-request-id:
- 116eee10-9ae8-4869-bc69-ad37253b11be
x-ms-routing-request-id:
- WESTUS:20160423T063818Z:116eee10-9ae8-4869-bc69-ad37253b11be
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:38:18 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:38:19 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,843 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 056fd16c-267b-4270-8d34-a47717d8a1dc
client-request-id:
- dd4f7eb2-a859-4e50-8284-79016c3760d7
x-ms-gateway-service-instanceid:
- ESTSFE_IN_420
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 07:07:43 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461398863","not_before":"1461394963","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:07:44 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2cc61af0-c822-426f-a0d9-65c1a2b39578
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1194'
x-ms-request-id:
- d3fff80e-2c4e-4cfc-a200-9a9d90a4f622
x-ms-correlation-request-id:
- d3fff80e-2c4e-4cfc-a200-9a9d90a4f622
x-ms-routing-request-id:
- WESTUS:20160423T070744Z:d3fff80e-2c4e-4cfc-a200-9a9d90a4f622
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:07:44 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:07:44 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 39131558-6397-46cf-878a-0ff93b655ce6
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 19f55d0a-ca7e-4b08-971c-9039d2337d94
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/19f55d0a-ca7e-4b08-971c-9039d2337d94?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1194'
x-ms-correlation-request-id:
- b399d6d3-6a86-4c5a-8abb-dc74721f846b
x-ms-routing-request-id:
- WESTUS:20160423T070745Z:b399d6d3-6a86-4c5a-8abb-dc74721f846b
date:
- Sat, 23 Apr 2016 07:07:44 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"3121b320-787e-4548-a660-f67200c5694c\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"e2ce5d42-3b93-43aa-982b-d894eeb78764\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"3121b320-787e-4548-a660-f67200c5694c\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:07:45 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/19f55d0a-ca7e-4b08-971c-9039d2337d94?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- aa5bd65b-b366-482f-812b-c18effbfb0cf
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- cd4b3608-b94b-4c6d-a412-09c35e640884
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-correlation-request-id:
- be6b55f3-b8b0-4189-bde7-721d9a02b818
x-ms-routing-request-id:
- WESTUS:20160423T070815Z:be6b55f3-b8b0-4189-bde7-721d9a02b818
date:
- Sat, 23 Apr 2016 07:08:15 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:08:16 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 39912b5a-43c9-4819-80a5-ac9dfdf98707
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"40ad8ac2-df88-4c14-a533-159195a25dda"
vary:
- Accept-Encoding
x-ms-request-id:
- 9dae3e03-1468-4e7a-8774-87bb31ba42db
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14991'
x-ms-correlation-request-id:
- 17f07d6c-3599-4cb3-85de-58be1397ffcc
x-ms-routing-request-id:
- WESTUS:20160423T070816Z:17f07d6c-3599-4cb3-85de-58be1397ffcc
date:
- Sat, 23 Apr 2016 07:08:15 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"40ad8ac2-df88-4c14-a533-159195a25dda\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"e2ce5d42-3b93-43aa-982b-d894eeb78764\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"40ad8ac2-df88-4c14-a533-159195a25dda\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:08:16 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 91a58376-c917-4c95-9b6f-8f88bfcc6636
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '373'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- d6767755-ff22-43c0-99dd-7869811304d6
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/d6767755-ff22-43c0-99dd-7869811304d6?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- b075654d-c592-4c1e-a0db-6b54c2f31d32
x-ms-routing-request-id:
- WESTUS:20160423T070816Z:b075654d-c592-4c1e-a0db-6b54c2f31d32
date:
- Sat, 23 Apr 2016 07:08:16 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"af004399-1f9b-462c-995c-64968fe67489\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:08:17 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/d6767755-ff22-43c0-99dd-7869811304d6?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a0bc6a1b-144f-4c1a-a5cb-14c3f4daa1ac
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 5fe32e40-d9cc-410b-af7c-2e9d2f279b1c
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-correlation-request-id:
- c125f7ff-6098-498e-8fb0-3331aaeadedc
x-ms-routing-request-id:
- WESTUS:20160423T070847Z:c125f7ff-6098-498e-8fb0-3331aaeadedc
date:
- Sat, 23 Apr 2016 07:08:47 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:08:47 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 3bc00a23-e3e7-442f-b88c-4e8de509c702
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"6fb3e72e-658a-409f-881b-45e146b286aa"
vary:
- Accept-Encoding
x-ms-request-id:
- 3c0b7c44-c970-4147-a83c-d7ddbf232964
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14992'
x-ms-correlation-request-id:
- b151c9e5-96d1-43e3-adb9-da1658bd7ec4
x-ms-routing-request-id:
- WESTUS:20160423T070847Z:b151c9e5-96d1-43e3-adb9-da1658bd7ec4
date:
- Sat, 23 Apr 2016 07:08:47 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"6fb3e72e-658a-409f-881b-45e146b286aa\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:08:48 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843"}}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 9c4078fd-bdb8-47d2-98c5-bf9932c582cc
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '656'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 901659ce-eff7-44b4-bd52-5a35fc886ded
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/901659ce-eff7-44b4-bd52-5a35fc886ded?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-correlation-request-id:
- 9112d179-3c0c-4808-ad3f-279886d6b4c2
x-ms-routing-request-id:
- WESTUS:20160423T070848Z:9112d179-3c0c-4808-ad3f-279886d6b4c2
date:
- Sat, 23 Apr 2016 07:08:48 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"5418f1e2-bfe8-4fe9-9503-7cdca8d14bbe\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"43a73772-04ed-4939-9759-5b4db9f993b7\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:08:49 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/901659ce-eff7-44b4-bd52-5a35fc886ded?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 84a3f770-b56b-4728-8be4-49ffb19e789b
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 49383590-a9e4-4fbf-9327-6fe2ede17b20
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14992'
x-ms-correlation-request-id:
- 8b77fbd2-463d-47d0-8743-0aa0bb805825
x-ms-routing-request-id:
- WESTUS:20160423T070919Z:8b77fbd2-463d-47d0-8743-0aa0bb805825
date:
- Sat, 23 Apr 2016 07:09:19 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:09:19 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2b8f58e7-2b0d-43aa-8567-93462bbcb545
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"b9d3fb72-0d2f-4a04-a3a7-1311749ee87c"
vary:
- Accept-Encoding
x-ms-request-id:
- cde9514b-7f41-4730-95c6-fbd2728c84e1
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-correlation-request-id:
- bcb33e38-19b0-4cfb-94f1-b8fe751c06a3
x-ms-routing-request-id:
- WESTUS:20160423T070919Z:bcb33e38-19b0-4cfb-94f1-b8fe751c06a3
date:
- Sat, 23 Apr 2016 07:09:18 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"b9d3fb72-0d2f-4a04-a3a7-1311749ee87c\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"43a73772-04ed-4939-9759-5b4db9f993b7\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:09:19 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"nic8474","location":"westus","properties":{"ipConfigurations":[{"properties":{"privateIPAllocationMethod":"Dynamic","subnet":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647","properties":{"addressPrefix":"10.0.1.0/24","provisioningState":"Succeeded"},"name":"subnet4857647","etag":"W/\"6fb3e72e-658a-409f-881b-45e146b286aa\""},"publicIPAddress":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363","name":"ip_name8363","type":"Microsoft.Network/publicIPAddresses","location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843","fqdn":"domain734843.westus.cloudapp.azure.com"},"idleTimeoutInMinutes":4,"resourceGuid":"43a73772-04ed-4939-9759-5b4db9f993b7","provisioningState":"Succeeded"},"etag":"W/\"b9d3fb72-0d2f-4a04-a3a7-1311749ee87c\""}},"name":"ip_name_36282"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 44926b4e-8ff5-4c7c-891b-28a680afbece
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1573'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-request-id:
- 985ec1ca-04cc-4b4e-9ca4-f8997d1bf0c8
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/985ec1ca-04cc-4b4e-9ca4-f8997d1bf0c8?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- d9fb4d63-22e4-4fde-be3b-965ca51e0802
x-ms-routing-request-id:
- WESTUS:20160423T070920Z:d9fb4d63-22e4-4fde-be3b-965ca51e0802
date:
- Sat, 23 Apr 2016 07:09:19 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"nic8474\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474\",\r\n
\ \"etag\": \"W/\\\"39518f77-b476-452a-b17f-78200d80b3c0\\\"\",\r\n \"type\":
\"Microsoft.Network/networkInterfaces\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"5b971b9d-3807-4029-9d55-2860a3a325e5\",\r\n \"ipConfigurations\": [\r\n
\ {\r\n \"name\": \"ip_name_36282\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474/ipConfigurations/ip_name_36282\",\r\n
\ \"etag\": \"W/\\\"39518f77-b476-452a-b17f-78200d80b3c0\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"privateIPAddress\": \"10.0.1.4\",\r\n \"privateIPAllocationMethod\":
\"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\"\r\n
\ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\"\r\n
\ },\r\n \"primary\": true\r\n }\r\n }\r\n ],\r\n
\ \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\":
[]\r\n },\r\n \"enableIPForwarding\": false\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:09:20 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 8d90b792-3c3b-449e-a0e8-c620c1d4b745
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"39518f77-b476-452a-b17f-78200d80b3c0"
vary:
- Accept-Encoding
x-ms-request-id:
- 7cecaeb7-49b6-4ae9-b946-5730f1f74072
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14992'
x-ms-correlation-request-id:
- 22c9fa35-3686-47b4-b56a-a19a286e3459
x-ms-routing-request-id:
- WESTUS:20160423T070920Z:22c9fa35-3686-47b4-b56a-a19a286e3459
date:
- Sat, 23 Apr 2016 07:09:20 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"nic8474\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474\",\r\n
\ \"etag\": \"W/\\\"39518f77-b476-452a-b17f-78200d80b3c0\\\"\",\r\n \"type\":
\"Microsoft.Network/networkInterfaces\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"5b971b9d-3807-4029-9d55-2860a3a325e5\",\r\n \"ipConfigurations\": [\r\n
\ {\r\n \"name\": \"ip_name_36282\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces/nic8474/ipConfigurations/ip_name_36282\",\r\n
\ \"etag\": \"W/\\\"39518f77-b476-452a-b17f-78200d80b3c0\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"privateIPAddress\": \"10.0.1.4\",\r\n \"privateIPAllocationMethod\":
\"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\"\r\n
\ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\"\r\n
\ },\r\n \"primary\": true\r\n }\r\n }\r\n ],\r\n
\ \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\":
[]\r\n },\r\n \"enableIPForwarding\": false\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:09:20 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b5f1c99d-1c7d-49c1-ac72-363bcbbe6d6a
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-request-id:
- a6aaeafb-96b1-48f5-91a7-51cda14b9888
x-ms-correlation-request-id:
- a6aaeafb-96b1-48f5-91a7-51cda14b9888
x-ms-routing-request-id:
- WESTUS:20160423T070920Z:a6aaeafb-96b1-48f5-91a7-51cda14b9888
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:09:19 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:09:21 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b0e64006-6264-4bb0-879e-28c82eec8f1d
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-request-id:
- 72268ad5-7eb7-4dcf-aade-56aac603da88
x-ms-correlation-request-id:
- 72268ad5-7eb7-4dcf-aade-56aac603da88
x-ms-routing-request-id:
- WESTUS:20160423T071122Z:72268ad5-7eb7-4dcf-aade-56aac603da88
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:11:21 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:11:22 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,429 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- ca77ffb9-d872-46ee-b5af-fdbd124400e4
client-request-id:
- 667c4b3f-1538-4ed9-9d68-2cd443864f5b
x-ms-gateway-service-instanceid:
- ESTSFE_IN_237
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:41:45 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461519705","not_before":"1461515805","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:41:45 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0a51fe78-90cf-44f4-a8d1-4c36b972f334
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- d99035a4-8d65-4b11-b836-b7710668d2f9
x-ms-correlation-request-id:
- d99035a4-8d65-4b11-b836-b7710668d2f9
x-ms-routing-request-id:
- WESTUS:20160424T164146Z:d99035a4-8d65-4b11-b836-b7710668d2f9
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:41:46 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:41:45 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"publicIPAllocationMethod":"Dynamic","dnsSettings":{"domainNameLabel":"domain734843"}}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 86c65b3d-9251-4c89-9d0b-47663178f511
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '656'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- f10a9b16-e838-4155-a79d-23705077a0a2
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/f10a9b16-e838-4155-a79d-23705077a0a2?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- fafa4b2b-a4be-451d-9411-a0d9544cc2e7
x-ms-routing-request-id:
- WESTUS:20160424T164146Z:fafa4b2b-a4be-451d-9411-a0d9544cc2e7
date:
- Sun, 24 Apr 2016 16:41:46 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"2994e251-cdb6-436a-a38e-d57955c7b5fd\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"00dee6ff-14d4-4b8c-b97a-abde1ec7ab1a\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:41:46 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/f10a9b16-e838-4155-a79d-23705077a0a2?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 8699debc-9870-46ef-a5a8-2549d222736c
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 36b8d473-45a6-49ca-bc79-861393526d4e
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 4fac5f87-c48e-4b4d-9b39-cb35739a1ab9
x-ms-routing-request-id:
- WESTUS:20160424T164217Z:4fac5f87-c48e-4b4d-9b39-cb35739a1ab9
date:
- Sun, 24 Apr 2016 16:42:17 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:42:17 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ff188f1c-dab2-40b0-8df2-575008125c3e
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"b2589046-0c12-4b0e-ab46-e13dbccabdee"
vary:
- Accept-Encoding
x-ms-request-id:
- 963ba5ae-8a69-49dc-97c2-0b041d4e1d1e
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 3955aa56-3466-4f79-81a7-315131e8783a
x-ms-routing-request-id:
- WESTUS:20160424T164218Z:3955aa56-3466-4f79-81a7-315131e8783a
date:
- Sun, 24 Apr 2016 16:42:18 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"b2589046-0c12-4b0e-ab46-e13dbccabdee\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"00dee6ff-14d4-4b8c-b97a-abde1ec7ab1a\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:42:17 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b1decac2-8a41-441a-af86-15aa95466c05
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"b2589046-0c12-4b0e-ab46-e13dbccabdee"
vary:
- Accept-Encoding
x-ms-request-id:
- 85363ffa-b917-4dac-bb32-231f6bacb704
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 38d4c4c9-0406-4f10-9683-833b928c6460
x-ms-routing-request-id:
- WESTUS:20160424T164218Z:38d4c4c9-0406-4f10-9683-833b928c6460
date:
- Sun, 24 Apr 2016 16:42:17 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"ip_name8363\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses/ip_name8363\",\r\n
\ \"etag\": \"W/\\\"b2589046-0c12-4b0e-ab46-e13dbccabdee\\\"\",\r\n \"type\":
\"Microsoft.Network/publicIPAddresses\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"00dee6ff-14d4-4b8c-b97a-abde1ec7ab1a\",\r\n \"publicIPAllocationMethod\":
\"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"dnsSettings\": {\r\n
\ \"domainNameLabel\": \"domain734843\",\r\n \"fqdn\": \"domain734843.westus.cloudapp.azure.com\"\r\n
\ }\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:42:18 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a77ce2d5-f565-4f0b-b4cd-0fb580eb41e5
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 05116ef1-3b6f-4567-aeda-b7d891c7c8a3
x-ms-correlation-request-id:
- 05116ef1-3b6f-4567-aeda-b7d891c7c8a3
x-ms-routing-request-id:
- WESTUS:20160424T164218Z:05116ef1-3b6f-4567-aeda-b7d891c7c8a3
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:42:18 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:42:18 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 16411464-9fbb-4f97-a6bc-d5ee5bc542be
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- 756848a7-81f6-4ae7-8680-7687443ac954
x-ms-correlation-request-id:
- 756848a7-81f6-4ae7-8680-7687443ac954
x-ms-routing-request-id:
- WESTUS:20160424T164420Z:756848a7-81f6-4ae7-8680-7687443ac954
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:44:19 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:44:20 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,582 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 66284410-5d32-4864-9e65-a92db8dd4d99
client-request-id:
- 20c6dcd0-5b45-489d-9645-3dc54fcff7a8
x-ms-gateway-service-instanceid:
- ESTSFE_IN_526
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:19:22 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461518363","not_before":"1461514463","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:19:22 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 64177e6a-9668-4a76-8f8b-e6a2af0a079a
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 5b994523-6606-4c86-bd67-319d71284640
x-ms-correlation-request-id:
- 5b994523-6606-4c86-bd67-319d71284640
x-ms-routing-request-id:
- WESTUS:20160424T161923Z:5b994523-6606-4c86-bd67-319d71284640
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:19:22 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:19:22 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"sec73484","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 07d24cef-2f76-4e2e-8eed-311275604cd5
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '5196'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- e639f3d6-dfe3-4f56-a753-01712195da20
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/e639f3d6-dfe3-4f56-a753-01712195da20?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 8d143b1f-4a65-41a9-a730-e66e5caa4a6f
x-ms-routing-request-id:
- WESTUS:20160424T161923Z:8d143b1f-4a65-41a9-a730-e66e5caa4a6f
date:
- Sun, 24 Apr 2016 16:19:23 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"126cef87-2999-4119-8702-b838e3f8f4ae\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"833ae680-b7fe-46c3-a5ce-5d363bab2af0\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"126cef87-2999-4119-8702-b838e3f8f4ae\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"126cef87-2999-4119-8702-b838e3f8f4ae\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"126cef87-2999-4119-8702-b838e3f8f4ae\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"126cef87-2999-4119-8702-b838e3f8f4ae\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"126cef87-2999-4119-8702-b838e3f8f4ae\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"126cef87-2999-4119-8702-b838e3f8f4ae\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:19:23 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/e639f3d6-dfe3-4f56-a753-01712195da20?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 921f9b23-b1bf-4e4e-a718-13243353a539
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- cbfcd892-5f89-41b6-b338-9cd80c2fd498
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- 561d272c-719f-454a-ad13-0643277a639a
x-ms-routing-request-id:
- WESTUS:20160424T161954Z:561d272c-719f-454a-ad13-0643277a639a
date:
- Sun, 24 Apr 2016 16:19:54 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:19:53 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6a6a76f4-ebfe-4c2f-9554-727581e71cfe
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb"
vary:
- Accept-Encoding
x-ms-request-id:
- d00d9b7e-7f26-40ea-b825-8ff18d854b63
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 0089a4c9-43e7-4333-b8c3-fbc662f1e284
x-ms-routing-request-id:
- WESTUS:20160424T161954Z:0089a4c9-43e7-4333-b8c3-fbc662f1e284
date:
- Sun, 24 Apr 2016 16:19:53 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"833ae680-b7fe-46c3-a5ce-5d363bab2af0\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:19:54 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4f7f4b55-4f3e-4dd4-9376-3790c322606e
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb"
vary:
- Accept-Encoding
x-ms-request-id:
- 72170169-a16b-40c5-b4c5-40cc9a9dfb87
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- be672fbe-35e8-4f2e-9c24-ed96466d06cf
x-ms-routing-request-id:
- WESTUS:20160424T161954Z:be672fbe-35e8-4f2e-9c24-ed96466d06cf
date:
- Sun, 24 Apr 2016 16:19:54 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"833ae680-b7fe-46c3-a5ce-5d363bab2af0\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"2eb172a6-ecce-4033-8c1b-5d671dd8e6bb\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:19:54 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 507f202a-630a-470e-a923-85ca119deb21
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- a0a8cfed-e6e3-4e89-9aaf-863eb53ef1a3
x-ms-correlation-request-id:
- a0a8cfed-e6e3-4e89-9aaf-863eb53ef1a3
x-ms-routing-request-id:
- WESTUS:20160424T161955Z:a0a8cfed-e6e3-4e89-9aaf-863eb53ef1a3
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:19:54 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:19:55 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c6bcd50f-90e3-4894-a1c5-818c6e982d8c
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-request-id:
- 253c40eb-1237-499f-adbc-d1a3d6946a18
x-ms-correlation-request-id:
- 253c40eb-1237-499f-adbc-d1a3d6946a18
x-ms-routing-request-id:
- WESTUS:20160424T162157Z:253c40eb-1237-499f-adbc-d1a3d6946a18
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:21:56 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:21:56 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,698 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 7495841e-8c60-4a28-92a1-0c07072bab8b
client-request-id:
- 25beb789-8d09-4014-b759-9ddfd6f8c5c8
x-ms-gateway-service-instanceid:
- ESTSFE_IN_214
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:56:03 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461520564","not_before":"1461516664","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:56:03 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2c46fe5a-505b-4c1a-9296-bbf649a42e25
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 8f8ee113-0cd2-4d22-a405-bef373e31ac6
x-ms-correlation-request-id:
- 8f8ee113-0cd2-4d22-a405-bef373e31ac6
x-ms-routing-request-id:
- WESTUS:20160424T165604Z:8f8ee113-0cd2-4d22-a405-bef373e31ac6
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:56:04 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:56:04 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"sec73484","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- cc9698dc-2ad1-4019-8df5-c0dd50c0339f
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '5196'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 7549ffdf-11e9-4cb6-98e3-eebacd85f65b
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/7549ffdf-11e9-4cb6-98e3-eebacd85f65b?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 7ebfa9ea-1094-4546-890a-ce407ec28eff
x-ms-routing-request-id:
- WESTUS:20160424T165606Z:7ebfa9ea-1094-4546-890a-ce407ec28eff
date:
- Sun, 24 Apr 2016 16:56:05 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"f14da0f2-832d-4ba8-ae0f-7815975a5fdf\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"787dafd8-ad7a-4c1c-88ff-97d96e8060f7\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"f14da0f2-832d-4ba8-ae0f-7815975a5fdf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"f14da0f2-832d-4ba8-ae0f-7815975a5fdf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"f14da0f2-832d-4ba8-ae0f-7815975a5fdf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"f14da0f2-832d-4ba8-ae0f-7815975a5fdf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"f14da0f2-832d-4ba8-ae0f-7815975a5fdf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"f14da0f2-832d-4ba8-ae0f-7815975a5fdf\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:56:05 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/7549ffdf-11e9-4cb6-98e3-eebacd85f65b?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- de22db35-2591-4d05-87cd-c3839fa3856d
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 72cfc159-c082-461b-8cbe-cefa1a76c680
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 623b6718-7423-4a78-bc0a-d02630ac2cab
x-ms-routing-request-id:
- WESTUS:20160424T165636Z:623b6718-7423-4a78-bc0a-d02630ac2cab
date:
- Sun, 24 Apr 2016 16:56:35 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:56:36 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 32273585-a5ec-4597-a2f8-6bf11e798bd1
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"2dd0f74f-c703-417d-99fa-c6651a34b3a3"
vary:
- Accept-Encoding
x-ms-request-id:
- 291512be-ea52-4c7c-9f9b-77230dce2596
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 73f8c6ec-cbdb-4ce2-80ed-3877cd4870ea
x-ms-routing-request-id:
- WESTUS:20160424T165636Z:73f8c6ec-cbdb-4ce2-80ed-3877cd4870ea
date:
- Sun, 24 Apr 2016 16:56:36 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"2dd0f74f-c703-417d-99fa-c6651a34b3a3\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"787dafd8-ad7a-4c1c-88ff-97d96e8060f7\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"2dd0f74f-c703-417d-99fa-c6651a34b3a3\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"2dd0f74f-c703-417d-99fa-c6651a34b3a3\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"2dd0f74f-c703-417d-99fa-c6651a34b3a3\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"2dd0f74f-c703-417d-99fa-c6651a34b3a3\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"2dd0f74f-c703-417d-99fa-c6651a34b3a3\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"2dd0f74f-c703-417d-99fa-c6651a34b3a3\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:56:36 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"protocol":"Udp","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","direction":"Outbound","sourcePortRange":"656","destinationPortRange":"123-3500","priority":4095},"name":"sec_rule_7428"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b8c6b3e9-5dac-4443-bef3-1e8de583090e
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '590'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- dd6ce890-dd20-43c9-b7e9-cab692c40a77
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/dd6ce890-dd20-43c9-b7e9-cab692c40a77?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 2d83e359-a6d2-42b7-97a0-eedabbd5718f
x-ms-routing-request-id:
- WESTUS:20160424T165637Z:2d83e359-a6d2-42b7-97a0-eedabbd5718f
date:
- Sun, 24 Apr 2016 16:56:36 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec_rule_7428\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428\",\r\n
\ \"etag\": \"W/\\\"fe695abe-9320-4855-aaf6-4062f71a64c3\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"protocol\": \"Udp\",\r\n
\ \"sourcePortRange\": \"656\",\r\n \"destinationPortRange\": \"123-3500\",\r\n
\ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Deny\",\r\n \"priority\": 4095,\r\n \"direction\":
\"Outbound\"\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:56:36 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/dd6ce890-dd20-43c9-b7e9-cab692c40a77?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b5b15efc-043f-43d5-b1c5-8730a75fdf54
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 85e82f94-92ad-48e2-9084-58dd9c059d94
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- 62771ae6-96bc-4929-bcdc-523ea9c1882b
x-ms-routing-request-id:
- WESTUS:20160424T165707Z:62771ae6-96bc-4929-bcdc-523ea9c1882b
date:
- Sun, 24 Apr 2016 16:57:07 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:57:07 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6d4e5fb4-f842-4889-9288-d6206a0140cc
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"b164e623-aff4-4252-b7aa-fe4e847dedba"
vary:
- Accept-Encoding
x-ms-request-id:
- d8731f02-d09a-4a30-afb6-0a6868729566
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 15b55cf8-9bae-42cd-b98a-eebbab8e34c9
x-ms-routing-request-id:
- WESTUS:20160424T165708Z:15b55cf8-9bae-42cd-b98a-eebbab8e34c9
date:
- Sun, 24 Apr 2016 16:57:08 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec_rule_7428\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428\",\r\n
\ \"etag\": \"W/\\\"b164e623-aff4-4252-b7aa-fe4e847dedba\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"Udp\",\r\n
\ \"sourcePortRange\": \"656\",\r\n \"destinationPortRange\": \"123-3500\",\r\n
\ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Deny\",\r\n \"priority\": 4095,\r\n \"direction\":
\"Outbound\"\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:57:07 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 9463a83a-65a3-4f0a-899f-dbd7b7415039
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"b164e623-aff4-4252-b7aa-fe4e847dedba"
vary:
- Accept-Encoding
x-ms-request-id:
- 2e69c9da-e31f-4e0e-9724-bd3dc2219c19
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- 22d44011-4f53-4944-b00f-cbcb5b316dd2
x-ms-routing-request-id:
- WESTUS:20160424T165708Z:22d44011-4f53-4944-b00f-cbcb5b316dd2
date:
- Sun, 24 Apr 2016 16:57:08 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec_rule_7428\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules/sec_rule_7428\",\r\n
\ \"etag\": \"W/\\\"b164e623-aff4-4252-b7aa-fe4e847dedba\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"protocol\": \"Udp\",\r\n
\ \"sourcePortRange\": \"656\",\r\n \"destinationPortRange\": \"123-3500\",\r\n
\ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Deny\",\r\n \"priority\": 4095,\r\n \"direction\":
\"Outbound\"\r\n }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 16:57:08 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b8868172-14a4-485f-b2d7-38144edd97cc
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- cc0aafe5-5d8d-4b6b-a05f-4efe64bcd5fe
x-ms-correlation-request-id:
- cc0aafe5-5d8d-4b6b-a05f-4efe64bcd5fe
x-ms-routing-request-id:
- WESTUS:20160424T165708Z:cc0aafe5-5d8d-4b6b-a05f-4efe64bcd5fe
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:57:08 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:57:08 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 5684378d-b750-4d0d-9bee-fa1e479d7ae7
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-request-id:
- 4c757652-f9d7-43dd-a3be-4c8577cb34a8
x-ms-correlation-request-id:
- 4c757652-f9d7-43dd-a3be-4c8577cb34a8
x-ms-routing-request-id:
- WESTUS:20160424T165910Z:4c757652-f9d7-43dd-a3be-4c8577cb34a8
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:59:09 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:59:09 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,597 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 045b6da1-6d1d-44fd-aa34-fa39b8ca9bff
client-request-id:
- 909ba2d9-c1ef-4349-b4bb-70bcb910fa14
x-ms-gateway-service-instanceid:
- ESTSFE_IN_230
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:15:20 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461521720","not_before":"1461517820","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:15:20 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 8028a2ef-3589-4fec-97bb-fa249e724668
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 94d7d133-cd65-41eb-8994-a2de64c92563
x-ms-correlation-request-id:
- 94d7d133-cd65-41eb-8994-a2de64c92563
x-ms-routing-request-id:
- WESTUS:20160424T171521Z:94d7d133-cd65-41eb-8994-a2de64c92563
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:15:21 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:15:21 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 806f785f-062e-440b-9b7e-931422e86f8a
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 1a13fd22-029a-4cd7-be76-17b5954a0a3e
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/1a13fd22-029a-4cd7-be76-17b5954a0a3e?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 5d1c5ee1-e4c9-462a-8f89-c3104d9f9bdd
x-ms-routing-request-id:
- WESTUS:20160424T171522Z:5d1c5ee1-e4c9-462a-8f89-c3104d9f9bdd
date:
- Sun, 24 Apr 2016 17:15:21 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"b8d804aa-04cb-46b7-a181-9683b50d7b34\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"b87462ac-dd8e-4187-bdd8-56d0bd3826b2\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"b8d804aa-04cb-46b7-a181-9683b50d7b34\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:15:22 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/1a13fd22-029a-4cd7-be76-17b5954a0a3e?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 833021a1-d556-4e17-9779-67d74398b528
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 5caa2548-bc45-474d-b656-eb82a8705129
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- eadd622c-90bc-4946-8e26-7dff73239386
x-ms-routing-request-id:
- WESTUS:20160424T171553Z:eadd622c-90bc-4946-8e26-7dff73239386
date:
- Sun, 24 Apr 2016 17:15:52 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:15:53 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e7516a5d-a31a-4276-9896-484f66872103
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"bcee5b3d-1ff3-4b41-96e7-b97d09446d04"
vary:
- Accept-Encoding
x-ms-request-id:
- ae35996a-8e9e-4cab-aea1-6a53690171af
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 7f941a2c-a6e3-47f5-9cc1-7021c774a5d4
x-ms-routing-request-id:
- WESTUS:20160424T171553Z:7f941a2c-a6e3-47f5-9cc1-7021c774a5d4
date:
- Sun, 24 Apr 2016 17:15:53 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"bcee5b3d-1ff3-4b41-96e7-b97d09446d04\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"b87462ac-dd8e-4187-bdd8-56d0bd3826b2\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"bcee5b3d-1ff3-4b41-96e7-b97d09446d04\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:15:53 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 7fe83cd2-16c7-4415-9af7-50d33e0f2f85
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '373'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 4ffb1df8-675e-433e-963f-ff53552fa63b
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/4ffb1df8-675e-433e-963f-ff53552fa63b?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-correlation-request-id:
- 6131a358-7767-4773-a340-ea064b99c62f
x-ms-routing-request-id:
- WESTUS:20160424T171554Z:6131a358-7767-4773-a340-ea064b99c62f
date:
- Sun, 24 Apr 2016 17:15:54 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"245888bb-0967-4944-ae44-d940ea67afc3\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:15:54 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/4ffb1df8-675e-433e-963f-ff53552fa63b?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 7bade421-bfc6-49a6-8cb5-7c4d7417fb74
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- b2c58741-7e9a-4515-8e71-1a068fa4f41c
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- 168d3127-82df-4808-bd3e-e326a0c390d9
x-ms-routing-request-id:
- WESTUS:20160424T171625Z:168d3127-82df-4808-bd3e-e326a0c390d9
date:
- Sun, 24 Apr 2016 17:16:24 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:16:24 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 61e3685e-7d47-4d71-9688-b28da4b8446f
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"1b80a237-4001-409e-8340-a4774c8c2038"
vary:
- Accept-Encoding
x-ms-request-id:
- 25ead651-b8ac-42a9-bad6-f5765407015d
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- 149257b0-7e99-4c80-81bf-141ddf64a672
x-ms-routing-request-id:
- WESTUS:20160424T171625Z:149257b0-7e99-4c80-81bf-141ddf64a672
date:
- Sun, 24 Apr 2016 17:16:24 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"1b80a237-4001-409e-8340-a4774c8c2038\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:16:25 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f4e5b6e5-72bf-4da9-b051-adc6e9efc5c8
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"1b80a237-4001-409e-8340-a4774c8c2038"
vary:
- Accept-Encoding
x-ms-request-id:
- 9d119103-b53f-4ec6-a390-f862db3fd15f
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- 74776bad-ba4f-4391-ac6d-9db2392246a3
x-ms-routing-request-id:
- WESTUS:20160424T171626Z:74776bad-ba4f-4391-ac6d-9db2392246a3
date:
- Sun, 24 Apr 2016 17:16:25 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"1b80a237-4001-409e-8340-a4774c8c2038\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:16:25 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1a52c514-9e62-490a-bbc9-2fd8973a492b
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 36a54a58-660b-4fe4-b101-1b97c6a5e658
x-ms-correlation-request-id:
- 36a54a58-660b-4fe4-b101-1b97c6a5e658
x-ms-routing-request-id:
- WESTUS:20160424T171626Z:36a54a58-660b-4fe4-b101-1b97c6a5e658
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:16:25 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:16:26 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 196a6d43-5b71-4534-aa3a-df35216f04fb
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-request-id:
- ada3c56f-467b-4a4d-83d8-0dfd493e1837
x-ms-correlation-request-id:
- ada3c56f-467b-4a4d-83d8-0dfd493e1837
x-ms-routing-request-id:
- WESTUS:20160424T171828Z:ada3c56f-467b-4a4d-83d8-0dfd493e1837
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:18:28 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:18:28 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,444 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 20784726-3a55-4e1a-b09f-23dec2b79f6a
client-request-id:
- 494a31b9-3d6b-4e37-a095-87381c34e6cd
x-ms-gateway-service-instanceid:
- ESTSFE_IN_113
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:51:27 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461523888","not_before":"1461519988","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:51:27 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f8353f03-e0cd-41c0-bfde-f41e93884918
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-request-id:
- c8fd2b67-dc41-46f5-bf45-510e55eb040f
x-ms-correlation-request-id:
- c8fd2b67-dc41-46f5-bf45-510e55eb040f
x-ms-routing-request-id:
- WESTUS:20160424T175128Z:c8fd2b67-dc41-46f5-bf45-510e55eb040f
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:51:27 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:51:28 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 62ba1ad0-dfa0-46e0-86a5-db5037d5527c
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 42da685c-2de8-42e9-82f0-003ffef3fbf2
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/42da685c-2de8-42e9-82f0-003ffef3fbf2?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- b4396e0b-ae02-40cc-8d67-3f0dda5e561a
x-ms-routing-request-id:
- WESTUS:20160424T175129Z:b4396e0b-ae02-40cc-8d67-3f0dda5e561a
date:
- Sun, 24 Apr 2016 17:51:28 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"0949dc71-81df-45a9-917f-1c6ebe7493d2\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"be3f78a2-dba8-49e5-8753-ae4e45dd72be\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"0949dc71-81df-45a9-917f-1c6ebe7493d2\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:51:29 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/42da685c-2de8-42e9-82f0-003ffef3fbf2?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 8b2eaf2f-4857-4baa-853a-8c4f98ad2e72
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- a0924523-9c65-4c23-a0d8-b0ec10b3b7b6
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 0f7e6625-6782-49cd-b926-2a96533b763e
x-ms-routing-request-id:
- WESTUS:20160424T175200Z:0f7e6625-6782-49cd-b926-2a96533b763e
date:
- Sun, 24 Apr 2016 17:51:59 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:51:59 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c8abf55d-ba88-49ec-b5db-7e85cdbee3ea
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"0f627d81-bbc8-4b39-b537-d970d0e455aa"
vary:
- Accept-Encoding
x-ms-request-id:
- f91a0f1e-dcfe-4e61-bde8-c557ca784cde
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14893'
x-ms-correlation-request-id:
- c097b69c-f171-411c-8b4b-900532371218
x-ms-routing-request-id:
- WESTUS:20160424T175200Z:c097b69c-f171-411c-8b4b-900532371218
date:
- Sun, 24 Apr 2016 17:52:00 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"0f627d81-bbc8-4b39-b537-d970d0e455aa\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"be3f78a2-dba8-49e5-8753-ae4e45dd72be\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"0f627d81-bbc8-4b39-b537-d970d0e455aa\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:52:00 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 353b3a53-7d43-46b4-a2ae-92c93251d6f1
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"0f627d81-bbc8-4b39-b537-d970d0e455aa"
vary:
- Accept-Encoding
x-ms-request-id:
- b0d01b89-f700-4430-a11c-0d5f75be7c59
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- 38efc6fd-5155-440d-ae33-6760e07de117
x-ms-routing-request-id:
- WESTUS:20160424T175201Z:38efc6fd-5155-440d-ae33-6760e07de117
date:
- Sun, 24 Apr 2016 17:52:00 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"0f627d81-bbc8-4b39-b537-d970d0e455aa\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"be3f78a2-dba8-49e5-8753-ae4e45dd72be\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"0f627d81-bbc8-4b39-b537-d970d0e455aa\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:52:00 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4378b40c-04df-4946-867b-f090bdbda9ee
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 875a5684-1eca-410e-a1ef-65fffce34452
x-ms-correlation-request-id:
- 875a5684-1eca-410e-a1ef-65fffce34452
x-ms-routing-request-id:
- WESTUS:20160424T175201Z:875a5684-1eca-410e-a1ef-65fffce34452
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:52:01 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:52:01 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4c0286e5-9d82-4b55-b502-0df657a7e5f0
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14888'
x-ms-request-id:
- ef21073a-52da-4a5a-b16a-37ed6eccec20
x-ms-correlation-request-id:
- ef21073a-52da-4a5a-b16a-37ed6eccec20
x-ms-routing-request-id:
- WESTUS:20160424T175402Z:ef21073a-52da-4a5a-b16a-37ed6eccec20
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:54:02 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:54:02 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 9751c7f9-b5f8-4586-b833-a85367da3c8a
client-request-id:
- e17ff194-de64-45c9-ae5c-35c92fa94257
x-ms-gateway-service-instanceid:
- ESTSFE_IN_53
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:56:07 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461524168","not_before":"1461520268","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:56:08 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c3572f06-8e10-4807-95fb-5378f2186452
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 097a5428-89bc-47b4-b75e-df2a023f676d
x-ms-correlation-request-id:
- 097a5428-89bc-47b4-b75e-df2a023f676d
x-ms-routing-request-id:
- WESTUS:20160424T175609Z:097a5428-89bc-47b4-b75e-df2a023f676d
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:56:08 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:56:08 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/virtualnetworks?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f02df0a0-fdb9-4f74-b702-8afb99461875
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-request-id:
- ffabf5c7-326e-4a39-8e2c-99474b7c44ee
x-ms-correlation-request-id:
- ffabf5c7-326e-4a39-8e2c-99474b7c44ee
x-ms-routing-request-id:
- WESTUS:20160424T175609Z:ffabf5c7-326e-4a39-8e2c-99474b7c44ee
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:56:08 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:56:09 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 006456b7-936d-41f4-9c59-a7e84635d3d9
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 24bf9e14-9acb-4c1c-a444-ce666377cce0
x-ms-correlation-request-id:
- 24bf9e14-9acb-4c1c-a444-ce666377cce0
x-ms-routing-request-id:
- WESTUS:20160424T175609Z:24bf9e14-9acb-4c1c-a444-ce666377cce0
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:56:09 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:56:09 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c9962590-4fbb-429f-824b-461c60fd0d70
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-request-id:
- af9fb569-8b33-4926-893c-3e28855eca79
x-ms-correlation-request-id:
- af9fb569-8b33-4926-893c-3e28855eca79
x-ms-routing-request-id:
- WESTUS:20160424T175711Z:af9fb569-8b33-4926-893c-3e28855eca79
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:57:10 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:57:10 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- b76f192c-be09-4ad9-a38b-64111d390094
client-request-id:
- fcbce519-7750-47b7-8881-cb6bb46b406c
x-ms-gateway-service-instanceid:
- ESTSFE_IN_334
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:25:04 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461518704","not_before":"1461514804","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:25:04 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b728e798-9bea-4b89-83eb-d55bfb647e5d
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- bca07a46-b0a8-47e0-8f2f-c60c2fa192be
x-ms-correlation-request-id:
- bca07a46-b0a8-47e0-8f2f-c60c2fa192be
x-ms-routing-request-id:
- WESTUS:20160424T162505Z:bca07a46-b0a8-47e0-8f2f-c60c2fa192be
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:25:04 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:25:04 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f42eefef-9c3d-4f26-a43d-3fcda8beda64
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-request-id:
- 909db045-f4d8-4710-8517-b9663ab733ba
x-ms-correlation-request-id:
- 909db045-f4d8-4710-8517-b9663ab733ba
x-ms-routing-request-id:
- WESTUS:20160424T162505Z:909db045-f4d8-4710-8517-b9663ab733ba
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:25:05 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:25:05 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 5489e931-a8ed-47d6-85cf-696253599202
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 468e77a6-48fc-4325-8a9e-7c1e4da4fb2f
x-ms-correlation-request-id:
- 468e77a6-48fc-4325-8a9e-7c1e4da4fb2f
x-ms-routing-request-id:
- WESTUS:20160424T162505Z:468e77a6-48fc-4325-8a9e-7c1e4da4fb2f
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:25:05 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:25:05 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6f027d21-a65e-44b0-9856-fe8e73f2321d
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-request-id:
- 9cc25390-0129-4a41-b032-159c4d7dc2e2
x-ms-correlation-request-id:
- 9cc25390-0129-4a41-b032-159c4d7dc2e2
x-ms-routing-request-id:
- WESTUS:20160424T162606Z:9cc25390-0129-4a41-b032-159c4d7dc2e2
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:26:06 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:26:06 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- d312c0de-54b5-40f8-b8f1-d3c69a808731
client-request-id:
- eace2704-fdb3-45ca-97a5-f19bf798aec4
x-ms-gateway-service-instanceid:
- ESTSFE_IN_382
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:24:02 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461518642","not_before":"1461514742","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:24:02 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 81a22ccf-006c-4304-a193-48cd47143bbc
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- e5083595-fa78-4489-bb99-2ecedea11a11
x-ms-correlation-request-id:
- e5083595-fa78-4489-bb99-2ecedea11a11
x-ms-routing-request-id:
- WESTUS:20160424T162403Z:e5083595-fa78-4489-bb99-2ecedea11a11
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:24:02 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:24:02 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/networkSecurityGroups?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 93bbdbc3-982c-4d7b-90e6-d1b44fbae819
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-request-id:
- d267c964-09fe-41e4-a131-bc2d7c0d9667
x-ms-correlation-request-id:
- d267c964-09fe-41e4-a131-bc2d7c0d9667
x-ms-routing-request-id:
- WESTUS:20160424T162403Z:d267c964-09fe-41e4-a131-bc2d7c0d9667
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:24:03 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:24:03 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 75876d0c-568b-4996-b003-b96eda5c8157
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- cb894f40-002a-4f71-8b3d-28ffe02c6f7f
x-ms-correlation-request-id:
- cb894f40-002a-4f71-8b3d-28ffe02c6f7f
x-ms-routing-request-id:
- WESTUS:20160424T162403Z:cb894f40-002a-4f71-8b3d-28ffe02c6f7f
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:24:03 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:24:03 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 01177685-fe94-433e-81c2-9c2d8bd79445
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-request-id:
- 9163c400-d8f4-495e-9860-ab6ef705d718
x-ms-correlation-request-id:
- 9163c400-d8f4-495e-9860-ab6ef705d718
x-ms-routing-request-id:
- WESTUS:20160424T162504Z:9163c400-d8f4-495e-9860-ab6ef705d718
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:25:04 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:25:04 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 84721bfc-1fec-49ff-83a4-89a2bff75eb6
client-request-id:
- 38aae503-4a04-4c13-b145-7d73a03fe996
x-ms-gateway-service-instanceid:
- ESTSFE_IN_266
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 06:39:53 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461397195","not_before":"1461393295","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:39:55 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1374488c-e966-4f9b-8ac7-fee54f654301
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 1fb738e7-f9e1-4593-9396-f9127f2b89f0
x-ms-correlation-request-id:
- 1fb738e7-f9e1-4593-9396-f9127f2b89f0
x-ms-routing-request-id:
- WESTUS:20160423T063955Z:1fb738e7-f9e1-4593-9396-f9127f2b89f0
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:39:54 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:39:55 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/localNetworkGateways?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 3ea0303d-df43-4238-aa5f-44bd04341f16
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-request-id:
- 41d91374-dab4-4dea-8caa-0d4b0b026417
x-ms-correlation-request-id:
- 41d91374-dab4-4dea-8caa-0d4b0b026417
x-ms-routing-request-id:
- WESTUS:20160423T063955Z:41d91374-dab4-4dea-8caa-0d4b0b026417
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:39:54 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sat, 23 Apr 2016 06:39:55 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f941e3f7-a53a-4a20-82fa-080260bbbb3f
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- 3cbf483f-bc40-4dbf-820d-21ed55c3dd8c
x-ms-correlation-request-id:
- 3cbf483f-bc40-4dbf-820d-21ed55c3dd8c
x-ms-routing-request-id:
- WESTUS:20160423T063955Z:3cbf483f-bc40-4dbf-820d-21ed55c3dd8c
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:39:55 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:39:56 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4b2c21d8-0060-402d-a5e0-68f6b889d4d5
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14929'
x-ms-request-id:
- c1a68bc3-66a9-42b8-a192-375e48c1b90d
x-ms-correlation-request-id:
- c1a68bc3-66a9-42b8-a192-375e48c1b90d
x-ms-routing-request-id:
- WESTUS:20160423T064056Z:c1a68bc3-66a9-42b8-a192-375e48c1b90d
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 06:40:55 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 06:40:57 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,592 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 6734e4d6-fcf5-4611-b6ef-574a576c33b8
client-request-id:
- 9e7492fe-c944-4c2e-b1be-bf3c2a69952f
x-ms-gateway-service-instanceid:
- ESTSFE_IN_304
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 07:18:41 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461399522","not_before":"1461395622","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:18:42 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c293793b-a354-4993-bf12-a6b2af2cd422
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1192'
x-ms-request-id:
- 26c12925-738b-49ce-af89-b0c6c6839048
x-ms-correlation-request-id:
- 26c12925-738b-49ce-af89-b0c6c6839048
x-ms-routing-request-id:
- WESTUS:20160423T071842Z:26c12925-738b-49ce-af89-b0c6c6839048
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:18:42 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:18:42 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 25dcbfd6-5123-4ef9-8574-3bd52e90d3dd
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- e164db0f-e00d-4490-a4e0-58763332e9cf
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/e164db0f-e00d-4490-a4e0-58763332e9cf?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-correlation-request-id:
- 1f9d8670-702e-4b22-9d49-d8ba84b44305
x-ms-routing-request-id:
- WESTUS:20160423T071843Z:1f9d8670-702e-4b22-9d49-d8ba84b44305
date:
- Sat, 23 Apr 2016 07:18:42 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"be055991-2089-4d8c-b74e-31901379bc31\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"c7fc2761-edf5-459b-8ad4-7e1089a23605\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"be055991-2089-4d8c-b74e-31901379bc31\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:18:43 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/e164db0f-e00d-4490-a4e0-58763332e9cf?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ecc4f746-0117-4351-bccc-4cc2110e68bc
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 30ffef55-5b85-49e7-884a-95657362ba73
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14989'
x-ms-correlation-request-id:
- 414c0d73-d8df-4d42-95e3-d8e0b1602b52
x-ms-routing-request-id:
- WESTUS:20160423T071913Z:414c0d73-d8df-4d42-95e3-d8e0b1602b52
date:
- Sat, 23 Apr 2016 07:19:12 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:19:14 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 36f7f0c5-0866-4aa8-b53c-c9ffb8aa1e0e
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"01bdd071-dc0a-4b43-badd-139413e0e2a4"
vary:
- Accept-Encoding
x-ms-request-id:
- a818f32e-c84a-4898-95e2-b93d7a935669
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14990'
x-ms-correlation-request-id:
- a1872dfe-2fbf-4df7-b651-3b58e5ea36a9
x-ms-routing-request-id:
- WESTUS:20160423T071913Z:a1872dfe-2fbf-4df7-b651-3b58e5ea36a9
date:
- Sat, 23 Apr 2016 07:19:13 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"01bdd071-dc0a-4b43-badd-139413e0e2a4\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"c7fc2761-edf5-459b-8ad4-7e1089a23605\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"01bdd071-dc0a-4b43-badd-139413e0e2a4\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:19:14 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a0fe1cfb-1e78-46ff-96b2-d78f395c80f8
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '373'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 6ce5ed77-84ab-403b-b585-b74ab17544c2
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/6ce5ed77-84ab-403b-b585-b74ab17544c2?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1194'
x-ms-correlation-request-id:
- 6b296cf5-bcf1-48aa-b7eb-4e7b7ec9ead9
x-ms-routing-request-id:
- WESTUS:20160423T071914Z:6b296cf5-bcf1-48aa-b7eb-4e7b7ec9ead9
date:
- Sat, 23 Apr 2016 07:19:14 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"bc02f91f-d248-4831-9efb-5544bcb129fb\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:19:15 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/6ce5ed77-84ab-403b-b585-b74ab17544c2?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b48884e9-73a3-4ce5-a554-3046d82b6dea
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 0059969d-9917-49a6-a9b6-b46af2a68df6
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14990'
x-ms-correlation-request-id:
- 9f795557-48a5-4a17-bdd8-ecfc36a1189a
x-ms-routing-request-id:
- WESTUS:20160423T071944Z:9f795557-48a5-4a17-bdd8-ecfc36a1189a
date:
- Sat, 23 Apr 2016 07:19:44 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:19:45 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 7642d357-b377-41a6-aefd-edec6641eba3
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"546d1db1-28ed-4ec8-ad03-67f64e83dca5"
vary:
- Accept-Encoding
x-ms-request-id:
- 13fce47c-34c8-4b77-8ec1-79a0eb7ce898
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14986'
x-ms-correlation-request-id:
- 11ab954d-988a-4a40-befa-17101cd71e86
x-ms-routing-request-id:
- WESTUS:20160423T071945Z:11ab954d-988a-4a40-befa-17101cd71e86
date:
- Sat, 23 Apr 2016 07:19:45 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"546d1db1-28ed-4ec8-ad03-67f64e83dca5\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:19:45 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkInterfaces?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2730fde4-e058-4a99-b5f8-02107d943c41
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14987'
x-ms-request-id:
- 6e082724-4e5e-4264-97d5-4105c94b7385
x-ms-correlation-request-id:
- 6e082724-4e5e-4264-97d5-4105c94b7385
x-ms-routing-request-id:
- WESTUS:20160423T071945Z:6e082724-4e5e-4264-97d5-4105c94b7385
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:19:45 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:19:46 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 89677c91-8267-4f86-a536-c65f71c665f9
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1192'
x-ms-request-id:
- 6b2e9b72-5952-41b0-ba2b-cca8d06d9c3f
x-ms-correlation-request-id:
- 6b2e9b72-5952-41b0-ba2b-cca8d06d9c3f
x-ms-routing-request-id:
- WESTUS:20160423T071946Z:6b2e9b72-5952-41b0-ba2b-cca8d06d9c3f
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:19:45 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:19:46 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f6e13f59-a942-407a-ba2b-d79b1caee103
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-request-id:
- 0ffa4ff5-4cfb-4d85-a890-59e2bcbce542
x-ms-correlation-request-id:
- 0ffa4ff5-4cfb-4d85-a890-59e2bcbce542
x-ms-routing-request-id:
- WESTUS:20160423T072147Z:0ffa4ff5-4cfb-4d85-a890-59e2bcbce542
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:21:46 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:21:47 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,592 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 30ab1218-b359-4917-9a76-797d5bb5cb68
client-request-id:
- 1fd06ce8-d585-4f9e-b4a0-cb8592493fdf
x-ms-gateway-service-instanceid:
- ESTSFE_IN_186
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 07:15:35 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461399335","not_before":"1461395435","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:15:36 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 61ac8de8-27d2-4044-99dc-d8aa39b9354d
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 0efc94ff-38a5-4dd7-aa73-42489844b07c
x-ms-correlation-request-id:
- 0efc94ff-38a5-4dd7-aa73-42489844b07c
x-ms-routing-request-id:
- WESTUS:20160423T071536Z:0efc94ff-38a5-4dd7-aa73-42489844b07c
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:15:35 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:15:36 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1f3443c7-deb9-49d5-ada4-61795edefacc
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 952da4d3-1e09-4d1e-b048-9f42c4eb53e7
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/952da4d3-1e09-4d1e-b048-9f42c4eb53e7?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1193'
x-ms-correlation-request-id:
- 6e2eb0eb-cfe3-4245-b820-2826051192ed
x-ms-routing-request-id:
- WESTUS:20160423T071536Z:6e2eb0eb-cfe3-4245-b820-2826051192ed
date:
- Sat, 23 Apr 2016 07:15:36 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"d2a50c70-6cf6-4941-a6c9-3ee9dea82497\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"2067294a-9904-455a-857b-8b10090f766e\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"d2a50c70-6cf6-4941-a6c9-3ee9dea82497\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:15:37 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/952da4d3-1e09-4d1e-b048-9f42c4eb53e7?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 8a0f0c27-744c-409e-8fe0-ec576b39f016
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- e430a5ed-8701-4320-a535-4ea9335007b6
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14740'
x-ms-correlation-request-id:
- ec7b3cf2-ded6-46d5-bcc0-df2cd9619f09
x-ms-routing-request-id:
- WESTUS:20160423T071607Z:ec7b3cf2-ded6-46d5-bcc0-df2cd9619f09
date:
- Sat, 23 Apr 2016 07:16:06 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:16:07 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f990e989-fc65-4a96-8dae-c49277bcf67c
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"838b1a0c-2a13-4bd3-9bf9-5470dd9c2d05"
vary:
- Accept-Encoding
x-ms-request-id:
- 76744e15-dbe4-4c0e-9803-dde4151b5ef8
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14987'
x-ms-correlation-request-id:
- ccd66d19-a139-4dec-ab16-b3f012b86c79
x-ms-routing-request-id:
- WESTUS:20160423T071607Z:ccd66d19-a139-4dec-ab16-b3f012b86c79
date:
- Sat, 23 Apr 2016 07:16:06 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"838b1a0c-2a13-4bd3-9bf9-5470dd9c2d05\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"2067294a-9904-455a-857b-8b10090f766e\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"838b1a0c-2a13-4bd3-9bf9-5470dd9c2d05\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:16:08 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e528476f-e7b5-4a4b-b7f2-db9ca88793d0
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '373'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- d74fc9ed-4ad5-4205-892d-7583798f742f
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/d74fc9ed-4ad5-4205-892d-7583798f742f?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- abb7cce8-8a9e-40ef-92b1-b209b608e5bf
x-ms-routing-request-id:
- WESTUS:20160423T071608Z:abb7cce8-8a9e-40ef-92b1-b209b608e5bf
date:
- Sat, 23 Apr 2016 07:16:07 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"3284f0b5-5f65-4464-bdaa-98194d38fb1e\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:16:08 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/d74fc9ed-4ad5-4205-892d-7583798f742f?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ff3d792b-411d-4fce-8b4c-80dd94afad1c
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- a1d49306-6d19-433b-a4ef-2b1d7a5e17c5
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14989'
x-ms-correlation-request-id:
- 77dfd515-1c4a-46b7-a502-46b19467846d
x-ms-routing-request-id:
- WESTUS:20160423T071638Z:77dfd515-1c4a-46b7-a502-46b19467846d
date:
- Sat, 23 Apr 2016 07:16:38 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:16:39 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a1814aa2-025f-41bb-aeb7-d80cfca804c7
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"aff48911-02c0-49f0-872a-41e17a56b211"
vary:
- Accept-Encoding
x-ms-request-id:
- c56b48ec-42fc-48c5-8c0a-74071ed9ef0c
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14992'
x-ms-correlation-request-id:
- 0c32d4bd-4166-4664-9b07-5cd0a6cc94eb
x-ms-routing-request-id:
- WESTUS:20160423T071639Z:0c32d4bd-4166-4664-9b07-5cd0a6cc94eb
date:
- Sat, 23 Apr 2016 07:16:38 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"aff48911-02c0-49f0-872a-41e17a56b211\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 07:16:39 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/networkInterfaces?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 5833e616-2580-4aa0-bcf8-accd12c0a57d
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14987'
x-ms-request-id:
- b5a9a319-999b-448f-a63c-399ff6a75eb9
x-ms-correlation-request-id:
- b5a9a319-999b-448f-a63c-399ff6a75eb9
x-ms-routing-request-id:
- WESTUS:20160423T071639Z:b5a9a319-999b-448f-a63c-399ff6a75eb9
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:16:39 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sat, 23 Apr 2016 07:16:40 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 75cee73a-6460-4e2f-b9a6-2204cc6069ba
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1192'
x-ms-request-id:
- df4d90aa-75d0-4939-b623-30f75c8c0cb5
x-ms-correlation-request-id:
- df4d90aa-75d0-4939-b623-30f75c8c0cb5
x-ms-routing-request-id:
- WESTUS:20160423T071639Z:df4d90aa-75d0-4939-b623-30f75c8c0cb5
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:16:39 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:16:40 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f1fcb02e-9f71-45fe-839d-5aedf2288b4a
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14986'
x-ms-request-id:
- e7b05609-e79e-4a2c-b979-26b51be8de3f
x-ms-correlation-request-id:
- e7b05609-e79e-4a2c-b979-26b51be8de3f
x-ms-routing-request-id:
- WESTUS:20160423T071841Z:e7b05609-e79e-4a2c-b979-26b51be8de3f
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 07:18:40 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 07:18:41 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- e82925f5-1df0-43fb-981a-3b6d6097e01c
client-request-id:
- ed583273-b1af-4fcc-ab48-8adc4b71b6e7
x-ms-gateway-service-instanceid:
- ESTSFE_IN_294
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:44:20 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461519861","not_before":"1461515961","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:44:20 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- d08fe074-43b3-40c9-b282-6b43273ec729
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 5286369c-127c-4a1f-8db2-d151658a72ca
x-ms-correlation-request-id:
- 5286369c-127c-4a1f-8db2-d151658a72ca
x-ms-routing-request-id:
- WESTUS:20160424T164421Z:5286369c-127c-4a1f-8db2-d151658a72ca
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:44:20 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:44:21 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/publicIPAddresses?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f72f9afa-84ab-4ba9-a8f3-7e210fcad1c5
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- ddc42276-048d-43bc-aa5f-1cff4efa4487
x-ms-correlation-request-id:
- ddc42276-048d-43bc-aa5f-1cff4efa4487
x-ms-routing-request-id:
- WESTUS:20160424T164421Z:ddc42276-048d-43bc-aa5f-1cff4efa4487
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:44:21 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:44:21 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 00b77d1a-5827-4b88-907e-df44e2aee52c
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- a7e175ec-a544-4a5b-b271-9ec6a289466a
x-ms-correlation-request-id:
- a7e175ec-a544-4a5b-b271-9ec6a289466a
x-ms-routing-request-id:
- WESTUS:20160424T164422Z:a7e175ec-a544-4a5b-b271-9ec6a289466a
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:44:21 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:44:21 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b8e9c83c-ff91-4ed8-bfdd-73fdde0a12e5
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-request-id:
- ad02c45a-7d3d-4533-9e1f-536ebdfd8037
x-ms-correlation-request-id:
- ad02c45a-7d3d-4533-9e1f-536ebdfd8037
x-ms-routing-request-id:
- WESTUS:20160424T164522Z:ad02c45a-7d3d-4533-9e1f-536ebdfd8037
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:45:21 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:45:22 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 270e35cf-02f9-4048-aad2-62e8a9caaab9
client-request-id:
- 22d18e5b-b1d1-4e98-ad02-2cbb0db7ba22
x-ms-gateway-service-instanceid:
- ESTSFE_IN_67
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 16:47:28 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461520048","not_before":"1461516148","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:47:28 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 2ace13eb-03fa-44d8-8c5e-d693aa303c1e
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 770b19fb-bc23-4bc7-8a11-fa8beed6683b
x-ms-correlation-request-id:
- 770b19fb-bc23-4bc7-8a11-fa8beed6683b
x-ms-routing-request-id:
- WESTUS:20160424T164728Z:770b19fb-bc23-4bc7-8a11-fa8beed6683b
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:47:28 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:47:28 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/publicIPAddresses?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 508de681-b0f9-476a-ad00-5384ee177177
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-request-id:
- 4c945738-7ef9-468b-96c0-304c663834d6
x-ms-correlation-request-id:
- 4c945738-7ef9-468b-96c0-304c663834d6
x-ms-routing-request-id:
- WESTUS:20160424T164729Z:4c945738-7ef9-468b-96c0-304c663834d6
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:47:28 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sun, 24 Apr 2016 16:47:28 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ea30274e-75aa-4693-b9b1-788d1e43777c
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 31d82256-bbda-4f93-a2d1-28ec1f55f355
x-ms-correlation-request-id:
- 31d82256-bbda-4f93-a2d1-28ec1f55f355
x-ms-routing-request-id:
- WESTUS:20160424T164729Z:31d82256-bbda-4f93-a2d1-28ec1f55f355
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:47:29 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:47:29 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 720b971c-486f-4078-9477-a76b7cbe0f82
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-request-id:
- f90a3e22-6d54-4998-97f1-7ab5e5791c78
x-ms-correlation-request-id:
- f90a3e22-6d54-4998-97f1-7ab5e5791c78
x-ms-routing-request-id:
- WESTUS:20160424T164800Z:f90a3e22-6d54-4998-97f1-7ab5e5791c78
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 16:47:59 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 16:47:59 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,522 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 82db2aa8-684d-4837-bc9c-960ef162110b
client-request-id:
- e815e3d3-1860-44f3-b2d8-a42bf12a97ca
x-ms-gateway-service-instanceid:
- ESTSFE_IN_225
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:02:47 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461520967","not_before":"1461517067","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:02:47 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 9d0a9ea4-672c-4760-bf8a-6199684841cd
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 87bacc19-ef5c-4f39-a2db-2e83238e2300
x-ms-correlation-request-id:
- 87bacc19-ef5c-4f39-a2db-2e83238e2300
x-ms-routing-request-id:
- WESTUS:20160424T170248Z:87bacc19-ef5c-4f39-a2db-2e83238e2300
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:02:47 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:02:47 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"sec73484","location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b14ffabe-a4c5-4bd3-bb6a-cf03ae2ca000
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '5196'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 0d7f1b9f-94b4-4f93-a3e1-9d0f4fb8fc6f
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/0d7f1b9f-94b4-4f93-a3e1-9d0f4fb8fc6f?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 6d3cdab9-1d56-44d7-8c94-c382bab76e07
x-ms-routing-request-id:
- WESTUS:20160424T170249Z:6d3cdab9-1d56-44d7-8c94-c382bab76e07
date:
- Sun, 24 Apr 2016 17:02:49 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"8ade8b2f-5a75-4835-b657-3792da5bc458\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"d987b19d-e51c-47fe-890b-d680a02cbabf\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"8ade8b2f-5a75-4835-b657-3792da5bc458\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"8ade8b2f-5a75-4835-b657-3792da5bc458\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"8ade8b2f-5a75-4835-b657-3792da5bc458\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"8ade8b2f-5a75-4835-b657-3792da5bc458\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"8ade8b2f-5a75-4835-b657-3792da5bc458\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"8ade8b2f-5a75-4835-b657-3792da5bc458\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:02:49 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/0d7f1b9f-94b4-4f93-a3e1-9d0f4fb8fc6f?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 06a35213-2d79-4e0a-8669-0e66cbda996d
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 2dd67423-94d1-47fe-b90d-554567688353
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- abcb669b-54e4-40b0-abac-b42400d1f3a1
x-ms-routing-request-id:
- WESTUS:20160424T170319Z:abcb669b-54e4-40b0-abac-b42400d1f3a1
date:
- Sun, 24 Apr 2016 17:03:19 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:03:19 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4fb7491a-e1ad-4977-8787-ce724c6897c0
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"c36114eb-395e-4000-9830-e98b539f2917"
vary:
- Accept-Encoding
x-ms-request-id:
- 24879648-01ed-414b-903b-bc8408fecf9b
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- db941f90-99f7-4f2d-8564-9b6dbb4d14bf
x-ms-routing-request-id:
- WESTUS:20160424T170321Z:db941f90-99f7-4f2d-8564-9b6dbb4d14bf
date:
- Sun, 24 Apr 2016 17:03:21 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"sec73484\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484\",\r\n
\ \"etag\": \"W/\\\"c36114eb-395e-4000-9830-e98b539f2917\\\"\",\r\n \"type\":
\"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"d987b19d-e51c-47fe-890b-d680a02cbabf\",\r\n \"securityRules\": [],\r\n
\ \"defaultSecurityRules\": [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetInBound\",\r\n
\ \"etag\": \"W/\\\"c36114eb-395e-4000-9830-e98b539f2917\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n
\ \"etag\": \"W/\\\"c36114eb-395e-4000-9830-e98b539f2917\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\":
\"Inbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllInBound\",\r\n
\ \"etag\": \"W/\\\"c36114eb-395e-4000-9830-e98b539f2917\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Inbound\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowVnetOutBound\",\r\n
\ \"etag\": \"W/\\\"c36114eb-395e-4000-9830-e98b539f2917\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to all VMs
in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\":
\"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n
\ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\":
\"Outbound\"\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/AllowInternetOutBound\",\r\n
\ \"etag\": \"W/\\\"c36114eb-395e-4000-9830-e98b539f2917\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n
\ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n
\ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\":
\"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\":
\"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\"\r\n
\ }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/defaultSecurityRules/DenyAllOutBound\",\r\n
\ \"etag\": \"W/\\\"c36114eb-395e-4000-9830-e98b539f2917\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\":
\"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\":
\"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\":
\"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n
\ \"direction\": \"Outbound\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:03:20 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/networkSecurityGroups/sec73484/securityRules?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a10d9dfa-47de-4af6-862a-4cc0197b12ec
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 3c6e0185-e9cc-4e5d-9175-e68f2f6c0ee3
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- 44ec161c-50f9-4bf5-b2c3-b7dd2350f060
x-ms-routing-request-id:
- WESTUS:20160424T170321Z:44ec161c-50f9-4bf5-b2c3-b7dd2350f060
date:
- Sun, 24 Apr 2016 17:03:20 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"value\": []\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:03:21 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6ea1c1ea-7fa9-4ba8-982e-ee88f310ac35
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-ms-request-id:
- 115f78cf-45d5-40af-8ad4-4dcaa5f3bba5
x-ms-correlation-request-id:
- 115f78cf-45d5-40af-8ad4-4dcaa5f3bba5
x-ms-routing-request-id:
- WESTUS:20160424T170322Z:115f78cf-45d5-40af-8ad4-4dcaa5f3bba5
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:03:21 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:03:21 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e30c5bb6-0214-4c29-9d26-1ffedfc84328
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-request-id:
- 1a13b25d-0c86-4cd3-96ca-740287ff2ce9
x-ms-correlation-request-id:
- 1a13b25d-0c86-4cd3-96ca-740287ff2ce9
x-ms-routing-request-id:
- WESTUS:20160424T170523Z:1a13b25d-0c86-4cd3-96ca-740287ff2ce9
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:05:23 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:05:23 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- c308802d-5b0b-4d97-8064-db139cb8d0fe
client-request-id:
- fc1ad425-e1ef-441d-a2b6-20b3d1be2720
x-ms-gateway-service-instanceid:
- ESTSFE_IN_289
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:54:02 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461524043","not_before":"1461520143","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:54:03 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c18d56fd-8769-4230-a23c-6e19f4ddb5f6
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 63df98bb-b2e0-41bb-bc25-bb42c7ee960b
x-ms-correlation-request-id:
- 63df98bb-b2e0-41bb-bc25-bb42c7ee960b
x-ms-routing-request-id:
- WESTUS:20160424T175404Z:63df98bb-b2e0-41bb-bc25-bb42c7ee960b
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:54:03 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:54:03 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/virtualnetworks?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- c58fd894-f9fb-410f-bbb4-422791470d99
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14993'
x-ms-request-id:
- 7b59bdc6-a92d-4534-809a-712639c4c805
x-ms-correlation-request-id:
- 7b59bdc6-a92d-4534-809a-712639c4c805
x-ms-routing-request-id:
- WESTUS:20160424T175404Z:7b59bdc6-a92d-4534-809a-712639c4c805
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:54:04 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:54:04 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1e6975cc-5610-49c4-aac8-c1605483640a
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 14ebdffa-33b9-4903-875f-b012e26b849c
x-ms-correlation-request-id:
- 14ebdffa-33b9-4903-875f-b012e26b849c
x-ms-routing-request-id:
- WESTUS:20160424T175405Z:14ebdffa-33b9-4903-875f-b012e26b849c
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:54:05 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:54:04 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0d47594e-ba8d-4778-b93f-835aaa6b08c4
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-request-id:
- 0d9724c1-85c3-495f-a6cd-2611da08633b
x-ms-correlation-request-id:
- 0d9724c1-85c3-495f-a6cd-2611da08633b
x-ms-routing-request-id:
- WESTUS:20160424T175505Z:0d9724c1-85c3-495f-a6cd-2611da08633b
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:55:05 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:55:05 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 5ccb44ee-3d26-4ecf-bc76-53165bb70ec8
client-request-id:
- 72fd0d48-22a3-4dec-a4c1-119de2b470c6
x-ms-gateway-service-instanceid:
- ESTSFE_IN_277
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:55:05 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461524106","not_before":"1461520206","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:55:05 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 3ef0781a-c817-444d-be69-7c9f0f070d31
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- da2ed65c-f522-496a-ab26-5a6970258541
x-ms-correlation-request-id:
- da2ed65c-f522-496a-ab26-5a6970258541
x-ms-routing-request-id:
- WESTUS:20160424T175506Z:da2ed65c-f522-496a-ab26-5a6970258541
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:55:05 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:55:06 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 037c215b-3b84-477e-a951-1039389723f8
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-request-id:
- f72b82ab-3d21-495f-aac6-afb19e135f98
x-ms-correlation-request-id:
- f72b82ab-3d21-495f-aac6-afb19e135f98
x-ms-routing-request-id:
- WESTUS:20160424T175506Z:f72b82ab-3d21-495f-aac6-afb19e135f98
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:55:05 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:55:06 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 61793574-4b5d-444d-871f-68531517b14f
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- 0ccb5a6c-44f3-4f0e-a634-e3e7c2f39163
x-ms-correlation-request-id:
- 0ccb5a6c-44f3-4f0e-a634-e3e7c2f39163
x-ms-routing-request-id:
- WESTUS:20160424T175507Z:0ccb5a6c-44f3-4f0e-a634-e3e7c2f39163
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:55:06 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:55:06 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- dbeaf117-308c-4df1-8e4f-6396fad5c5a8
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- 792c9924-223b-4a03-b5b7-4bfd6604e06e
x-ms-correlation-request-id:
- 792c9924-223b-4a03-b5b7-4bfd6604e06e
x-ms-routing-request-id:
- WESTUS:20160424T175608Z:792c9924-223b-4a03-b5b7-4bfd6604e06e
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:56:07 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:56:07 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,142 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 8644d75c-7404-44bc-a4f0-b24ce1e2a346
client-request-id:
- bb42dfba-0957-42f8-a2c9-253c8ceee806
x-ms-gateway-service-instanceid:
- ESTSFE_IN_217
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:25:58 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3600","expires_on":"1461522358","not_before":"1461518458","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:25:58 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 950b9294-47bb-42fd-88bc-98c4edab61dc
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 149b4cfe-0b1c-4ecd-bc79-721d0031824e
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-correlation-request-id:
- c1e95ecb-1555-44a5-96ca-79485c1772e5
x-ms-routing-request-id:
- WESTUS:20160424T172559Z:c1e95ecb-1555-44a5-96ca-79485c1772e5
date:
- Sun, 24 Apr 2016 17:25:58 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"value\": [\r\n {\r\n \"currentValue\": 0.0,\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/VirtualNetworks\",\r\n
\ \"limit\": 50.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Virtual Networks\",\r\n \"value\": \"VirtualNetworks\"\r\n },\r\n
\ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/NetworkWatchers\",\r\n
\ \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Network Watchers\",\r\n \"value\": \"NetworkWatchers\"\r\n },\r\n
\ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/StaticPublicIPAddresses\",\r\n
\ \"limit\": 20.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Static Public IP Addresses\",\r\n \"value\": \"StaticPublicIPAddresses\"\r\n
\ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\":
0.0,\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/NetworkSecurityGroups\",\r\n
\ \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Network Security Groups\",\r\n \"value\": \"NetworkSecurityGroups\"\r\n
\ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\":
0.0,\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/PublicIPAddresses\",\r\n
\ \"limit\": 60.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Public IP Addresses\",\r\n \"value\": \"PublicIPAddresses\"\r\n },\r\n
\ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/NetworkInterfaces\",\r\n
\ \"limit\": 300.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Network Interfaces\",\r\n \"value\": \"NetworkInterfaces\"\r\n },\r\n
\ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/LoadBalancers\",\r\n
\ \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Load Balancers\",\r\n \"value\": \"LoadBalancers\"\r\n },\r\n
\ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/ApplicationGateways\",\r\n
\ \"limit\": 50.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Application Gateways\",\r\n \"value\": \"ApplicationGateways\"\r\n
\ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\":
0.0,\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/usages/RouteTables\",\r\n
\ \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\":
\"Route Tables\",\r\n \"value\": \"RouteTables\"\r\n },\r\n \"unit\":
\"Count\"\r\n }\r\n ]\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:25:58 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- c5ff5183-30c2-4522-8c17-d605f6e199a4
client-request-id:
- 7aab3642-2169-4e2c-b5b6-a66381ca5079
x-ms-gateway-service-instanceid:
- ESTSFE_IN_510
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 05:20:31 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461392432","not_before":"1461388532","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:32 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e8b9ed88-8717-47a3-85ed-c398a8173d0c
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 2d2ebca6-25b8-47ae-97c4-e19f4173f36e
x-ms-correlation-request-id:
- 2d2ebca6-25b8-47ae-97c4-e19f4173f36e
x-ms-routing-request-id:
- WESTUS:20160423T052033Z:2d2ebca6-25b8-47ae-97c4-e19f4173f36e
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:20:32 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:33 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- b04f4650-f887-471e-a6c3-a6ed65672937
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-request-id:
- 497edfc4-5672-42d9-91e9-0a2c6c7e2df4
x-ms-correlation-request-id:
- 497edfc4-5672-42d9-91e9-0a2c6c7e2df4
x-ms-routing-request-id:
- WESTUS:20160423T052033Z:497edfc4-5672-42d9-91e9-0a2c6c7e2df4
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:20:33 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:33 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- bdaa6695-538c-4402-92dd-53b634823a75
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- bad96e85-32db-43c5-99fc-823314546a84
x-ms-correlation-request-id:
- bad96e85-32db-43c5-99fc-823314546a84
x-ms-routing-request-id:
- WESTUS:20160423T052034Z:bad96e85-32db-43c5-99fc-823314546a84
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:20:33 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:34 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6042eb88-efdf-4249-9ecc-0b695b26b06f
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- c5404601-505a-4a97-b5e3-53a28b8fc92d
x-ms-correlation-request-id:
- c5404601-505a-4a97-b5e3-53a28b8fc92d
x-ms-routing-request-id:
- WESTUS:20160423T052135Z:c5404601-505a-4a97-b5e3-53a28b8fc92d
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:21:35 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:21:35 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,250 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 38c1a4fa-580a-471f-a572-5326d98d2dd0
client-request-id:
- b34ed410-1192-4669-8870-384237f4290a
x-ms-gateway-service-instanceid:
- ESTSFE_IN_29
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 05:19:59 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461392399","not_before":"1461388499","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:00 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 78e8c495-6149-48e5-a2e3-5e88841f4b80
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- 13e6de6d-73ff-4041-94a6-ff3cc84e1f9e
x-ms-correlation-request-id:
- 13e6de6d-73ff-4041-94a6-ff3cc84e1f9e
x-ms-routing-request-id:
- WESTUS:20160423T052000Z:13e6de6d-73ff-4041-94a6-ff3cc84e1f9e
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:20:00 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:00 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/loadBalancers?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- bed59109-b475-4ab2-b71b-de53e935b207
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-request-id:
- bb926e80-c6ea-4c5d-8e28-7b2c8042e20e
x-ms-correlation-request-id:
- bb926e80-c6ea-4c5d-8e28-7b2c8042e20e
x-ms-routing-request-id:
- WESTUS:20160423T052000Z:bb926e80-c6ea-4c5d-8e28-7b2c8042e20e
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:19:59 GMT
connection:
- close
content-length:
- '133'
body:
encoding: ASCII-8BIT
string: '{"value":[]}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:00 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- a6e76442-cd82-4d36-a865-33ec046b08bb
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 4944c40e-05f2-4074-b4df-1c8b985c58ea
x-ms-correlation-request-id:
- 4944c40e-05f2-4074-b4df-1c8b985c58ea
x-ms-routing-request-id:
- WESTUS:20160423T052001Z:4944c40e-05f2-4074-b4df-1c8b985c58ea
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:20:00 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:01 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 7f998865-6c8c-473d-ac72-a2bb74834cb5
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14994'
x-ms-request-id:
- 56c114bb-d705-4900-9d40-e88b7f42dbd8
x-ms-correlation-request-id:
- 56c114bb-d705-4900-9d40-e88b7f42dbd8
x-ms-routing-request-id:
- WESTUS:20160423T052031Z:56c114bb-d705-4900-9d40-e88b7f42dbd8
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:20:30 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:20:31 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,434 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 4a06716d-07e5-4c99-9c87-e2937429a5b5
client-request-id:
- 9753d4c5-5d67-499f-b4df-e6effbb98a83
x-ms-gateway-service-instanceid:
- ESTSFE_IN_144
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sun, 24 Apr 2016 17:18:28 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461521909","not_before":"1461518009","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:18:28 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 874847c9-990c-4a09-bd2c-dc216507debe
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 287860f3-4f4c-491f-a3bc-8c0c98c45dbf
x-ms-correlation-request-id:
- 287860f3-4f4c-491f-a3bc-8c0c98c45dbf
x-ms-routing-request-id:
- WESTUS:20160424T171829Z:287860f3-4f4c-491f-a3bc-8c0c98c45dbf
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:18:29 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sun, 24 Apr 2016 17:18:29 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 8c246266-b046-49d2-9e43-c4c47f8122dd
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- b73c92c4-b1c0-4a49-97c4-9199b287f2c8
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/b73c92c4-b1c0-4a49-97c4-9199b287f2c8?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- 31955f4e-cd26-4a84-92d5-e123782cd863
x-ms-routing-request-id:
- WESTUS:20160424T171830Z:31955f4e-cd26-4a84-92d5-e123782cd863
date:
- Sun, 24 Apr 2016 17:18:30 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"b1105f8e-58d4-47b9-87eb-7524de0ce502\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"57d4eebc-e5c0-458e-bdc6-f0dac439232b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"b1105f8e-58d4-47b9-87eb-7524de0ce502\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:18:30 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/b73c92c4-b1c0-4a49-97c4-9199b287f2c8?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e72ba870-8583-4962-a4a5-adce22b9b54d
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 59e3e43d-63a6-49f9-9722-5820f039bb65
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- 0623d348-2842-4e88-ba79-bc95990842f0
x-ms-routing-request-id:
- WESTUS:20160424T171901Z:0623d348-2842-4e88-ba79-bc95990842f0
date:
- Sun, 24 Apr 2016 17:19:01 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:19:00 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 4fc08854-ee17-401d-a97c-78d7e0d42cd3
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"5643db4c-03a7-42c3-8964-ffd700940c4a"
vary:
- Accept-Encoding
x-ms-request-id:
- 8951f68b-9ebc-429e-8c72-6239886f9dc6
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14999'
x-ms-correlation-request-id:
- 387a90ff-f91a-4466-b69e-68d30466eed8
x-ms-routing-request-id:
- WESTUS:20160424T171901Z:387a90ff-f91a-4466-b69e-68d30466eed8
date:
- Sun, 24 Apr 2016 17:19:01 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"5643db4c-03a7-42c3-8964-ffd700940c4a\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"57d4eebc-e5c0-458e-bdc6-f0dac439232b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"5643db4c-03a7-42c3-8964-ffd700940c4a\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:19:01 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- ce3d71d5-8199-4be9-a0d1-fddc1e708e1f
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- e3697bb6-f2ae-4f90-9c24-eba537256e25
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- 326c00ff-e4ba-432c-9df1-73c5f27cb289
x-ms-routing-request-id:
- WESTUS:20160424T171901Z:326c00ff-e4ba-432c-9df1-73c5f27cb289
date:
- Sun, 24 Apr 2016 17:19:01 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"5643db4c-03a7-42c3-8964-ffd700940c4a\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\":
\"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n}"
http_version:
recorded_at: Sun, 24 Apr 2016 17:19:01 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 78eb941d-e948-472a-8848-9de3fb86538d
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-request-id:
- bdbd1e97-5597-4b96-afc1-89e4e52894e3
x-ms-correlation-request-id:
- bdbd1e97-5597-4b96-afc1-89e4e52894e3
x-ms-routing-request-id:
- WESTUS:20160424T171902Z:bdbd1e97-5597-4b96-afc1-89e4e52894e3
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:19:02 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:19:01 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 6865d88a-111d-49ad-91a6-e0e0ffce7462
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14995'
x-ms-request-id:
- c16d2f3a-3f2f-4d07-8414-ca58029791f3
x-ms-correlation-request-id:
- c16d2f3a-3f2f-4d07-8414-ca58029791f3
x-ms-routing-request-id:
- WESTUS:20160424T172104Z:c16d2f3a-3f2f-4d07-8414-ca58029791f3
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sun, 24 Apr 2016 17:21:04 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sun, 24 Apr 2016 17:21:04 GMT
recorded_with: VCR 3.0.1

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

@ -0,0 +1,748 @@
---
http_interactions:
- request:
method: get
uri: https://login.windows.net/<AZURE_TENANT_ID>/oauth2/token
body:
encoding: UTF-8
string: resource=https%3A%2F%2Fmanagement.core.windows.net%2F&client_id=<AZURE_CLIENT_ID>&client_secret=<AZURE_CLIENT_SECRET>&grant_type=client_credentials
headers:
User-Agent:
- Faraday v0.9.2
content-type:
- application/x-www-form-urlencoded
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache, no-store
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
server:
- Microsoft-IIS/8.5
x-ms-request-id:
- 9c8c77bd-63e8-4a05-9e29-5189acf74745
client-request-id:
- 848274fd-6b3b-42ad-a0e1-16c2be2d53c7
x-ms-gateway-service-instanceid:
- ESTSFE_IN_282
x-content-type-options:
- nosniff
strict-transport-security:
- max-age=31536000; includeSubDomains
p3p:
- CP="DSP CUR OTPi IND OTRi ONL FIN"
set-cookie:
- flight-uxoptin=true; path=/; secure; HttpOnly, x-ms-gateway-slice=productionb;
path=/; secure; HttpOnly, stsservicecookie=ests; path=/; secure; HttpOnly
x-powered-by:
- ASP.NET
date:
- Sat, 23 Apr 2016 05:13:11 GMT
connection:
- close
content-length:
- '1234'
body:
encoding: UTF-8
string: '{"token_type":"Bearer","expires_in":"3599","expires_on":"1461391992","not_before":"1461388092","resource":"https://management.core.windows.net/","access_token":"<ACCESS_TOKEN>"}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:13:11 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: UTF-8
string: '{"location":"westus"}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- bc488643-368c-4c1b-9d66-3888abfa863c
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '213'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-writes:
- '1196'
x-ms-request-id:
- d12fe176-1a03-4fb5-b6b9-81b73e504e5a
x-ms-correlation-request-id:
- d12fe176-1a03-4fb5-b6b9-81b73e504e5a
x-ms-routing-request-id:
- WESTUS:20160423T051311Z:d12fe176-1a03-4fb5-b6b9-81b73e504e5a
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:13:10 GMT
connection:
- close
body:
encoding: UTF-8
string: '{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network","name":"RubySDKTest_azure_mgmt_network","location":"westus","properties":{"provisioningState":"Succeeded"}}'
http_version:
recorded_at: Sat, 23 Apr 2016 05:13:11 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"location":"westus","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"properties":{"addressPrefix":"10.0.2.0/24"},"name":"subnet1234"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 25372a9e-a8ba-48fb-9516-bd2245e5b127
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '1087'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- da8f598b-835a-4abc-8fa7-663405be48f5
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/da8f598b-835a-4abc-8fa7-663405be48f5?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-correlation-request-id:
- 5b219370-89fb-400a-922e-26c165a1f675
x-ms-routing-request-id:
- WESTUS:20160423T051312Z:5b219370-89fb-400a-922e-26c165a1f675
date:
- Sat, 23 Apr 2016 05:13:11 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"bce3001c-24e8-4a6b-a62d-5fc5d06d2035\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
\"6fa9f4e3-7c92-43f1-8a54-be0576db36fa\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"bce3001c-24e8-4a6b-a62d-5fc5d06d2035\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:13:12 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/da8f598b-835a-4abc-8fa7-663405be48f5?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- e5ba9e14-f02f-44f8-98ae-c5c838e8b08c
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 6967114e-0342-4619-8280-6f43cb06367b
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14998'
x-ms-correlation-request-id:
- d365e0b5-58fd-4e78-85a8-13ae8fc1d12e
x-ms-routing-request-id:
- WESTUS:20160423T051343Z:d365e0b5-58fd-4e78-85a8-13ae8fc1d12e
date:
- Sat, 23 Apr 2016 05:13:43 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:13:43 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 5e0ca813-e449-483f-8109-60f984d315c7
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"08f44aa7-f8f3-4131-8f67-2634da5e86c7"
vary:
- Accept-Encoding
x-ms-request-id:
- a0d3191d-9de4-4a6e-a63e-f7cde07d4133
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14997'
x-ms-correlation-request-id:
- f0ac4d23-70eb-44f9-9575-4cbf21c28dd0
x-ms-routing-request-id:
- WESTUS:20160423T051343Z:f0ac4d23-70eb-44f9-9575-4cbf21c28dd0
date:
- Sat, 23 Apr 2016 05:13:43 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"test_vnet\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet\",\r\n
\ \"etag\": \"W/\\\"08f44aa7-f8f3-4131-8f67-2634da5e86c7\\\"\",\r\n \"type\":
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
\"6fa9f4e3-7c92-43f1-8a54-be0576db36fa\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\":
[\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\":
{\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n
\ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1234\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet1234\",\r\n
\ \"etag\": \"W/\\\"08f44aa7-f8f3-4131-8f67-2634da5e86c7\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:13:43 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"properties":{"addressPrefix":"10.0.1.0/24"}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- d2d35377-8336-47f0-bbbb-7ea12b58cac0
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '373'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
retry-after: '1'
x-ms-request-id:
- 321a612e-0737-4938-a403-6ca068b2e6bb
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/321a612e-0737-4938-a403-6ca068b2e6bb?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1198'
x-ms-correlation-request-id:
- e27b683f-102e-4e26-bcd4-ad54085ded71
x-ms-routing-request-id:
- WESTUS:20160423T051344Z:e27b683f-102e-4e26-bcd4-ad54085ded71
date:
- Sat, 23 Apr 2016 05:13:43 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"c694b8f8-01bc-4f83-99fd-d9c3bc46f5dc\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:13:44 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/321a612e-0737-4938-a403-6ca068b2e6bb?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 0adc8918-d3b0-4cfa-9818-fadd35c85389
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 83cef62e-cabf-4b43-8922-e71cd10f2078
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- f9417f55-9fad-42f0-893b-f5761ed840ad
x-ms-routing-request-id:
- WESTUS:20160423T051415Z:f9417f55-9fad-42f0-893b-f5761ed840ad
date:
- Sat, 23 Apr 2016 05:14:14 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:14:15 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualnetworks/test_vnet/subnets/subnet4857647?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 03ee470e-ce85-47cf-b2c5-9e1784c633e1
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
etag:
- W/"8c3f22bc-43d0-4457-b13e-2fab9b457c6c"
vary:
- Accept-Encoding
x-ms-request-id:
- ebbbdc6b-ac3e-41c6-a466-66d0189e9b4d
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- 4a7aadc2-7d38-4a9e-b730-cfdc7cc94032
x-ms-routing-request-id:
- WESTUS:20160423T051415Z:4a7aadc2-7d38-4a9e-b730-cfdc7cc94032
date:
- Sat, 23 Apr 2016 05:14:14 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"name\": \"subnet4857647\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\",\r\n
\ \"etag\": \"W/\\\"8c3f22bc-43d0-4457-b13e-2fab9b457c6c\\\"\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n
\ }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:14:15 GMT
- request:
method: put
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test?api-version=2015-06-15
body:
encoding: UTF-8
string: '{"name":"load_balancer_test","location":"westus","properties":{"frontendIPConfigurations":[{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config","properties":{"privateIPAllocationMethod":"Dynamic","subnet":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647","properties":{"addressPrefix":"10.0.1.0/24","provisioningState":"Succeeded"},"name":"subnet4857647","etag":"W/\"8c3f22bc-43d0-4457-b13e-2fab9b457c6c\""}},"name":"frontend_ip_config"}],"loadBalancingRules":[{"properties":{"protocol":"Udp","frontendPort":80,"frontendIPConfiguration":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config"},"backendPort":80},"name":"udp_rule"},{"properties":{"protocol":"Tcp","frontendPort":80,"frontendIPConfiguration":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config"},"backendPort":80},"name":"tcp_rule"}],"inboundNatRules":[{"properties":{"frontendIPConfiguration":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config"},"protocol":"Udp","frontendPort":32900,"backendPort":32900},"name":"inbound_udp_rule"},{"properties":{"frontendIPConfiguration":{"id":"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config"},"protocol":"Tcp","frontendPort":32900,"backendPort":32900},"name":"inbound_tcp_rule"}]}}'
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- f58364b1-f0f6-4d0e-884d-ef60bb039daf
accept-language:
- en-US
Content-Type:
- application/json; charset=utf-8
response:
status:
code: 201
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-length:
- '5979'
content-type:
- application/json; charset=utf-8
expires:
- "-1"
x-ms-request-id:
- b24f808e-93a5-4889-b282-f56f7037d87b
azure-asyncoperation:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/locations/westus/operations/b24f808e-93a5-4889-b282-f56f7037d87b?api-version=2015-06-15
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes:
- '1195'
x-ms-correlation-request-id:
- 4c49d0ff-96d8-47fe-a95c-e956d5546a2f
x-ms-routing-request-id:
- WESTUS:20160423T051416Z:4c49d0ff-96d8-47fe-a95c-e956d5546a2f
date:
- Sat, 23 Apr 2016 05:14:15 GMT
connection:
- close
body:
encoding: UTF-8
string: "{\r\n \"name\": \"load_balancer_test\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n \"type\":
\"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\":
{\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"1cf31019-495a-472a-950d-18f63e2be65b\",\r\n
\ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"frontend_ip_config\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"privateIPAddress\": \"10.0.1.4\",\r\n \"privateIPAllocationMethod\":
\"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\"\r\n
\ },\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/loadBalancingRules/udp_rule\"\r\n
\ },\r\n {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/loadBalancingRules/tcp_rule\"\r\n
\ }\r\n ],\r\n \"inboundNatRules\": [\r\n {\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/inboundNatRules/inbound_udp_rule\"\r\n
\ },\r\n {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/inboundNatRules/inbound_tcp_rule\"\r\n
\ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\":
[],\r\n \"loadBalancingRules\": [\r\n {\r\n \"name\": \"udp_rule\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/loadBalancingRules/udp_rule\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\"\r\n
\ },\r\n \"frontendPort\": 80,\r\n \"backendPort\":
80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
4,\r\n \"protocol\": \"Udp\",\r\n \"loadDistribution\":
\"Default\"\r\n }\r\n },\r\n {\r\n \"name\": \"tcp_rule\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/loadBalancingRules/tcp_rule\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\"\r\n
\ },\r\n \"frontendPort\": 80,\r\n \"backendPort\":
80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\":
\"Default\"\r\n }\r\n }\r\n ],\r\n \"probes\": [],\r\n \"inboundNatRules\":
[\r\n {\r\n \"name\": \"inbound_udp_rule\",\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/inboundNatRules/inbound_udp_rule\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\"\r\n
\ },\r\n \"frontendPort\": 32900,\r\n \"backendPort\":
32900,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
4,\r\n \"protocol\": \"Udp\"\r\n }\r\n },\r\n {\r\n
\ \"name\": \"inbound_tcp_rule\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/inboundNatRules/inbound_tcp_rule\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\"\r\n
\ },\r\n \"frontendPort\": 32900,\r\n \"backendPort\":
32900,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n ],\r\n
\ \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n }\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:14:16 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/providers/Microsoft.Network/loadBalancers?api-version=2015-06-15
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 99dbe6ef-ed1a-4aee-8880-db4900d9d324
accept-language:
- en-US
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
content-type:
- application/json; charset=utf-8
expires:
- "-1"
vary:
- Accept-Encoding
x-ms-request-id:
- 6baa6614-00f0-49da-9516-c92d9b42cc51
strict-transport-security:
- max-age=31536000; includeSubDomains
server:
- Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads:
- '14996'
x-ms-correlation-request-id:
- 952f4a64-84b4-47ef-9bc4-da95c0f034eb
x-ms-routing-request-id:
- WESTUS:20160423T051416Z:952f4a64-84b4-47ef-9bc4-da95c0f034eb
date:
- Sat, 23 Apr 2016 05:14:16 GMT
connection:
- close
body:
encoding: ASCII-8BIT
string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"load_balancer_test\",\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n \"type\":
\"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"resourceGuid\": \"1cf31019-495a-472a-950d-18f63e2be65b\",\r\n \"frontendIPConfigurations\":
[\r\n {\r\n \"name\": \"frontend_ip_config\",\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"privateIPAddress\": \"10.0.1.4\",\r\n \"privateIPAllocationMethod\":
\"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/virtualNetworks/test_vnet/subnets/subnet4857647\"\r\n
\ },\r\n \"loadBalancingRules\": [\r\n {\r\n
\ \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/loadBalancingRules/udp_rule\"\r\n
\ },\r\n {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/loadBalancingRules/tcp_rule\"\r\n
\ }\r\n ],\r\n \"inboundNatRules\":
[\r\n {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/inboundNatRules/inbound_udp_rule\"\r\n
\ },\r\n {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/inboundNatRules/inbound_tcp_rule\"\r\n
\ }\r\n ]\r\n }\r\n }\r\n ],\r\n
\ \"backendAddressPools\": [],\r\n \"loadBalancingRules\": [\r\n
\ {\r\n \"name\": \"udp_rule\",\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/loadBalancingRules/udp_rule\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\"\r\n
\ },\r\n \"frontendPort\": 80,\r\n \"backendPort\":
80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
4,\r\n \"protocol\": \"Udp\",\r\n \"loadDistribution\":
\"Default\"\r\n }\r\n },\r\n {\r\n \"name\":
\"tcp_rule\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/loadBalancingRules/tcp_rule\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\"\r\n
\ },\r\n \"frontendPort\": 80,\r\n \"backendPort\":
80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\":
\"Default\"\r\n }\r\n }\r\n ],\r\n \"probes\":
[],\r\n \"inboundNatRules\": [\r\n {\r\n \"name\":
\"inbound_udp_rule\",\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/inboundNatRules/inbound_udp_rule\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\"\r\n
\ },\r\n \"frontendPort\": 32900,\r\n \"backendPort\":
32900,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
4,\r\n \"protocol\": \"Udp\"\r\n }\r\n },\r\n
\ {\r\n \"name\": \"inbound_tcp_rule\",\r\n \"id\":
\"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/inboundNatRules/inbound_tcp_rule\",\r\n
\ \"etag\": \"W/\\\"4ab2991b-14ee-40fd-ae3b-ad2e29131765\\\"\",\r\n
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
\ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourceGroups/RubySDKTest_azure_mgmt_network/providers/Microsoft.Network/loadBalancers/load_balancer_test/frontendIPConfigurations/frontend_ip_config\"\r\n
\ },\r\n \"frontendPort\": 32900,\r\n \"backendPort\":
32900,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\":
4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n
\ ],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\":
[]\r\n }\r\n }\r\n ]\r\n}"
http_version:
recorded_at: Sat, 23 Apr 2016 05:14:16 GMT
- request:
method: delete
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/resourcegroups/RubySDKTest_azure_mgmt_network?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- cdf746b2-6d9a-46e8-9426-f707b0b52a1c
accept-language:
- en-US
response:
status:
code: 202
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
location:
- https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
retry-after: '1'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
x-ms-request-id:
- 12b1ac51-7cc7-4b81-bcf9-150e10ce632f
x-ms-correlation-request-id:
- 12b1ac51-7cc7-4b81-bcf9-150e10ce632f
x-ms-routing-request-id:
- WESTUS:20160423T051416Z:12b1ac51-7cc7-4b81-bcf9-150e10ce632f
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:14:15 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:14:17 GMT
- request:
method: get
uri: https://management.azure.com/subscriptions/<AZURE_SUBSCRIPTION_ID>/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SVUJZU0RLVEVTVDo1RkFaVVJFOjVGTUdNVDo1Rk5FVFdPUkstV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2015-11-01
body:
encoding: US-ASCII
string: ''
headers:
User-Agent:
- Azure-SDK-For-Ruby/0.2.1/
x-ms-client-request-id:
- 1d89e346-56e0-4cfa-8792-7628244e33f3
accept-language:
- en-US
Content-Type:
- application/json
response:
status:
code: 200
message:
headers:
cache-control:
- no-cache
pragma:
- no-cache
expires:
- "-1"
x-ms-ratelimit-remaining-subscription-reads:
- '14885'
x-ms-request-id:
- 39e95cf0-7d23-447e-9df0-3d8a9adce982
x-ms-correlation-request-id:
- 39e95cf0-7d23-447e-9df0-3d8a9adce982
x-ms-routing-request-id:
- WESTUS:20160423T051619Z:39e95cf0-7d23-447e-9df0-3d8a9adce982
strict-transport-security:
- max-age=31536000; includeSubDomains
date:
- Sat, 23 Apr 2016 05:16:19 GMT
connection:
- close
content-length:
- '0'
body:
encoding: UTF-8
string: ''
http_version:
recorded_at: Sat, 23 Apr 2016 05:16:19 GMT
recorded_with: VCR 3.0.1

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

@ -3,10 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'network_shared'
require_relative 'subnet_shared'
require_relative 'virtual_network_gateway_shared'
require_relative 'local_network_gateway_shared'
include MsRestAzure
include Azure::ARM::Resources

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

@ -1,37 +0,0 @@
# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'public_ip_addresses_shared'
def create_virtual_network_gateway(location, resource_group,name = nil)
params = build_virtual_network_gateway_params(location, resource_group)
params.name = name || params.name
NETWORK_CLIENT.virtual_network_gateways.create_or_update(resource_group.name, params.name, params).value!.body
end
def build_virtual_network_gateway_params(location, resource_group)
params = Models::VirtualNetworkGateway.new
params.location = location
params.name = get_random_name('vnet_gateway')
props = Models::VirtualNetworkGatewayPropertiesFormat.new
params.properties = props
props.enable_bgp = false
props.gateway_type = 'Vpn'
props.vpn_type = 'RouteBased'
ip_config = Models::VirtualNetworkGatewayIpConfiguration.new
props.ip_configurations = [ip_config]
ip_config.name = get_random_name('ip_config')
ip_config_props = Models::VirtualNetworkGatewayIpConfigurationPropertiesFormat.new
ip_config.properties = ip_config_props
ip_config_props.private_ipallocation_method = 'Dynamic'
vnet = create_virtual_network(resource_group.name)
public_ip = create_public_ip_address(location, resource_group)
subnet_params = build_subnet_params
subnet_params.name = 'GatewaySubnet'
subnet = NETWORK_CLIENT.subnets.create_or_update(resource_group.name, vnet.name, subnet_params.name, subnet_params).value!.body
ip_config_props.public_ipaddress = public_ip
ip_config_props.subnet = subnet
params
end

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

@ -3,10 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'network_shared'
require_relative 'subnet_shared'
require_relative 'public_ip_addresses_shared'
require_relative 'virtual_network_gateway_shared'
include MsRestAzure
include Azure::ARM::Resources

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

@ -3,28 +3,26 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
require_relative 'spec_helper'
require_relative 'network_shared'
include MsRestAzure
include Azure::ARM::Resources
include Azure::ARM::Network
describe VirtualNetworks do
before(:all) do
@client = NETWORK_CLIENT.virtual_networks
@resource_group = create_resource_group
describe 'Virtual Networks' do
before(:each) do
@resource_helper = ResourceHelper.new()
@client = @resource_helper.network_client.virtual_networks
@resource_group = @resource_helper.create_resource_group
@location = 'westus'
end
after(:all) do
delete_resource_group(@resource_group.name)
after(:each) do
@resource_helper.delete_resource_group(@resource_group.name)
end
it 'should create virtual network' do
virtualNetworkName = get_random_name("vnet")
params = build_virtual_network_params(@location)
virtualNetworkName = "vnet7384"
params = @resource_helper.build_virtual_network_params(@location)
result = @client.create_or_update(@resource_group.name, virtualNetworkName, params).value!
expect(result.response.status).to eq(200)
@ -34,7 +32,7 @@ describe VirtualNetworks do
end
it 'should get virtual network' do
vnet = create_virtual_network(@resource_group.name)
vnet = @resource_helper.create_virtual_network(@resource_group.name)
result = @client.get(@resource_group.name, vnet.name).value!
expect(result.response.status).to eq(200)
expect(result.body).not_to be_nil
@ -63,7 +61,7 @@ describe VirtualNetworks do
expect(result.body.value).not_to be_nil
expect(result.body.value).to be_a(Array)
end
end
end
it 'should list all Virtual Networks in a subscription' do
result = @client.list_all.value!
@ -78,9 +76,8 @@ describe VirtualNetworks do
end
it 'should delete virtual network' do
vnet = create_virtual_network @resource_group.name
vnet = @resource_helper.create_virtual_network(@resource_group.name)
result = @client.delete(@resource_group.name, vnet.name).value!
expect(result.response.status).to eq(200)
end
end
end