diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlChildrenOperations.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlChildrenOperations.java index a820b89ce70..a8332d22e43 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlChildrenOperations.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlChildrenOperations.java @@ -51,6 +51,16 @@ public interface SqlChildrenOperations { */ T getBySqlServer(SqlServer sqlServer, String name); + /** + * Asynchronously gets the information about a child resource from Azure SQL server, identifying it by its name and its resource group. + * + * @param sqlServer the SQL server parent resource + * @param name the name of the child resource + * @return a representation of the deferred computation of this call returning the found resource + */ + @Beta(Beta.SinceVersion.V1_8_0) + Observable getBySqlServerAsync(SqlServer sqlServer, String name); + /** * Gets the information about a child resource from Azure SQL server using the resource ID. * @@ -125,9 +135,17 @@ public interface SqlChildrenOperations { * @param sqlServer the parent Azure SQL server. * @return the list of resources */ - @Deprecated List listBySqlServer(SqlServer sqlServer); + /** + * Asynchronously lists Azure SQL child resources of the specified Azure SQL server in the specified resource group. + * + * @param sqlServer the parent Azure SQL server. + * @return a representation of the deferred computation of this call + */ + @Beta(Beta.SinceVersion.V1_8_0) + Observable listBySqlServerAsync(SqlServer sqlServer); + /** * Base interface for Azure SQL Server child resource actions. * diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlFirewallRuleOperations.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlFirewallRuleOperations.java index 307c9652a89..426459bf674 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlFirewallRuleOperations.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlFirewallRuleOperations.java @@ -88,7 +88,6 @@ interface WithIPAddressRange { * The final stage of the SQL Firewall Rule definition. */ interface WithCreate extends Creatable { -// interface WithCreate extends SqlChildrenCreatableDefinition { } } diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServer.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServer.java index f394de20979..17270f1028b 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServer.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServer.java @@ -206,6 +206,12 @@ public interface SqlServer extends @Beta(Beta.SinceVersion.V1_7_0) SqlFirewallRuleOperations.SqlFirewallRuleActionsDefinition firewallRules(); + /** + * @return returns entry point to manage SQL Virtual Network Rule for this server. + */ + @Beta(Beta.SinceVersion.V1_8_0) + SqlVirtualNetworkRuleOperations.SqlVirtualNetworkRuleActionsDefinition virtualNetworkRules(); + /** * @return returns entry point to manage the SQL Elastic Pools for this server. */ @@ -218,6 +224,12 @@ public interface SqlServer extends @Beta(Beta.SinceVersion.V1_7_0) SqlDatabaseOperations.SqlDatabaseActionsDefinition databases(); + /** + * @return returns entry point to manage SQL Server DNS aliases for this server. + */ + @Beta(Beta.SinceVersion.V1_8_0) + SqlServerDnsAliasOperations.SqlServerDnsAliasActionsDefinition dnsAliases(); + /************************************************************** * Fluent interfaces to provision a SqlServer @@ -422,6 +434,21 @@ interface WithFirewallRule { WithCreate withNewFirewallRule(String startIPAddress, String endIPAddress, String firewallRuleName); } + /** + * The stage of the SQL Server definition allowing to specify the SQL Virtual Network Rules. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithVirtualNetworkRule { + /** + * Begins the definition of a new SQL Virtual Network Rule to be added to this server. + * + * @param virtualNetworkRuleName the name of the new SQL Virtual Network Rule + * @return the first stage of the new SQL Virtual Network Rule definition + */ + @Beta(Beta.SinceVersion.V1_8_0) + SqlVirtualNetworkRule.DefinitionStages.Blank defineVirtualNetworkRule(String virtualNetworkRuleName); + } + /** * A SQL Server definition with sufficient inputs to create a new * SQL Server in the cloud, but exposing additional optional inputs to @@ -435,6 +462,7 @@ interface WithCreate extends WithElasticPool, WithDatabase, WithFirewallRule, + WithVirtualNetworkRule, DefinitionWithTags { } } @@ -541,8 +569,6 @@ interface WithDatabase { Update withoutDatabase(String databaseName); } - - /** * The stage of the SQL Server update definition allowing to specify the SQL Firewall rules. */ diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServerDnsAlias.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServerDnsAlias.java new file mode 100644 index 00000000000..bcb427014ef --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServerDnsAlias.java @@ -0,0 +1,62 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql; + +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.apigeneration.Method; +import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; +import com.microsoft.azure.management.resources.fluentcore.arm.models.HasName; +import com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup; +import com.microsoft.azure.management.resources.fluentcore.model.HasInner; +import com.microsoft.azure.management.resources.fluentcore.model.Indexable; +import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; +import com.microsoft.azure.management.sql.implementation.ServerDnsAliasInner; +import rx.Completable; + +/** + * An immutable client-side representation of an Azure SQL Server DNS alias. + */ +@Fluent +@Beta(Beta.SinceVersion.V1_8_0) +public interface SqlServerDnsAlias + extends + HasId, + HasInner, + HasName, + HasResourceGroup, + Indexable, + Refreshable { + /** + * @return name of the SQL Server to which this DNS alias belongs + */ + String sqlServerName(); + + /** + * @return the fully qualified DNS record for alias + */ + String azureDnsRecord(); + + /** + * @return the parent SQL server ID + */ + String parentId(); + + /** + * Deletes the DNS alias. + */ + @Method + void delete(); + + /** + * Deletes the DNS alias asynchronously. + * + * @return a representation of the deferred computation of this call + */ + @Method + Completable deleteAsync(); + +} diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServerDnsAliasOperations.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServerDnsAliasOperations.java new file mode 100644 index 00000000000..fe7e12ab547 --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServerDnsAliasOperations.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql; + +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating; +import com.microsoft.azure.management.resources.fluentcore.model.Creatable; +import rx.Completable; + +/** + * A representation of the Azure SQL Server DNS alias operations. + */ +@Fluent +@Beta(Beta.SinceVersion.V1_8_0) +public interface SqlServerDnsAliasOperations extends + SupportsCreating, + SqlChildrenOperations { + + /** + * Acquires server DNS alias from another server. + * + * @param resourceGroupName the name of the resource group that contains the resource + * @param serverName the name of the server that the alias is pointing to + * @param dnsAliasName the name of the Server DNS alias + * @param sqlServerId the id of the other SQL server that the DNS alias was pointing to + */ + void acquire(String resourceGroupName, String serverName, String dnsAliasName, String sqlServerId); + + /** + * Acquires server DNS alias from another server asynchronously. + * + * @param resourceGroupName the name of the resource group that contains the resource + * @param serverName the name of the server that the alias is pointing to + * @param dnsAliasName the name of the Server DNS alias + * @param sqlServerId the id of the other SQL server that the DNS alias was pointing to + * @return a representation of the deferred computation of this call + */ + Completable acquireAsync(String resourceGroupName, String serverName, String dnsAliasName, String sqlServerId); + + /** + * Acquires server DNS alias from another server. + * + * @param dnsAliasName the name of the Server DNS alias + * @param oldSqlServerId the id of the other SQL server that the DNS alias was pointing to + * @param newSqlServerId the id of the server that the alias is pointing to + */ + void acquire(String dnsAliasName, String oldSqlServerId, String newSqlServerId); + + /** + * Acquires server DNS alias from another server asynchronously. + * + * @param dnsAliasName the name of the Server DNS alias + * @param oldSqlServerId the id of the other SQL server that the DNS alias was pointing to + * @param newSqlServerId the id of the server that the alias is pointing to + * @return a representation of the deferred computation of this call + */ + Completable acquireAsync(String dnsAliasName, String oldSqlServerId, String newSqlServerId); + + /** + * Container interface for all the definitions that need to be implemented. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface SqlServerDnsAliasOperationsDefinition extends + SqlServerDnsAliasOperations.DefinitionStages.WithSqlServer, + SqlServerDnsAliasOperations.DefinitionStages.WithCreate { + } + + /** + * Grouping of all the SQL Server DNS alias definition stages. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface DefinitionStages { + /** + * The first stage of the SQL Server DNS alias definition. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithSqlServer { + /** + * Sets the parent SQL server name and resource group it belongs to. + * + * @param resourceGroupName the name of the resource group the parent SQL server + * @param sqlServerName the parent SQL server name + * @return The next stage of the definition. + */ + SqlServerDnsAliasOperations.DefinitionStages.WithCreate withExistingSqlServer(String resourceGroupName, String sqlServerName); + + /** + * Sets the parent SQL server for the new Server DNS alias. + * + * @param sqlServerId the parent SQL server ID + * @return The next stage of the definition. + */ + SqlServerDnsAliasOperations.DefinitionStages.WithCreate withExistingSqlServerId(String sqlServerId); + + /** + * Sets the parent SQL server for the new Server DNS alias. + * + * @param sqlServer the parent SQL server + * @return The next stage of the definition. + */ + SqlServerDnsAliasOperations.DefinitionStages.WithCreate withExistingSqlServer(SqlServer sqlServer); + } + + /** + * The final stage of the SQL Server DNS alias definition. + */ + interface WithCreate extends Creatable { + } + } + + /** + * Grouping of the Azure SQL Server DNS alias common actions. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface SqlServerDnsAliasActionsDefinition extends SqlChildrenActionsDefinition { + /** + * Begins the definition of a new SQL ServerDNS alias to be added to this server. + * + * @param serverDnsAliasName the name of the new DNS alias to be created for the selected SQL server + * @return the first stage of the new SQL Virtual Network Rule definition + */ + SqlServerDnsAliasOperations.DefinitionStages.WithCreate define(String serverDnsAliasName); + + /** + * Acquires server DNS alias from another server. + * + * @param dnsAliasName the name of the Server DNS alias + * @param sqlServerId the id of the other SQL server that the DNS alias was pointing to + */ + void acquire(String dnsAliasName, String sqlServerId); + + /** + * Acquires server DNS alias from another server asynchronously. + * + * @param dnsAliasName the name of the Server DNS alias + * @param sqlServerId the id of the other SQL server that the DNS alias was pointing to + * @return a representation of the deferred computation of this call + */ + Completable acquireAsync(String dnsAliasName, String sqlServerId); + } +} \ No newline at end of file diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServers.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServers.java index 92ef206a822..04be8aa0aed 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServers.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlServers.java @@ -47,6 +47,18 @@ public interface SqlServers extends @Beta(Beta.SinceVersion.V1_7_0) SqlFirewallRuleOperations firewallRules(); + /** + * @return the SQL Server VirtualNetwork Rules API entry point + */ + @Beta(Beta.SinceVersion.V1_8_0) + SqlVirtualNetworkRuleOperations virtualNetworkRules(); + + /** + * @return the SQL Server DNS aliases API entry point + */ + @Beta(Beta.SinceVersion.V1_8_0) + SqlServerDnsAliasOperations dnsAliases(); + /** * @return the SQL Server Elastic Pools API entry point */ diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlVirtualNetworkRule.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlVirtualNetworkRule.java new file mode 100644 index 00000000000..e58e2c45ac1 --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlVirtualNetworkRule.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql; + +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.apigeneration.Method; +import com.microsoft.azure.management.resources.fluentcore.arm.models.ExternalChildResource; +import com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup; +import com.microsoft.azure.management.resources.fluentcore.model.Appliable; +import com.microsoft.azure.management.resources.fluentcore.model.Attachable; +import com.microsoft.azure.management.resources.fluentcore.model.HasInner; +import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; +import com.microsoft.azure.management.resources.fluentcore.model.Updatable; +import com.microsoft.azure.management.sql.implementation.VirtualNetworkRuleInner; +import rx.Completable; + +/** + * An immutable client-side representation of an Azure SQL Server Virtual Network Rule. + */ +@Fluent +@Beta(Beta.SinceVersion.V1_8_0) +public interface SqlVirtualNetworkRule + extends + ExternalChildResource, + HasInner, + HasResourceGroup, + Refreshable, + Updatable { + + /** + * @return name of the SQL Server to which this Virtual Network Rule belongs + */ + String sqlServerName(); + + /** + * @return the subnet ID of the Azure SQL Server Virtual Network Rule. + */ + String subnetId(); + + /** + * @return the Azure SQL Server Virtual Network Rule state; possible values include: 'Initializing', + * 'InProgress', 'Ready', 'Deleting', 'Unknown' + */ + String state(); + + /** + * @return the parent SQL server ID + */ + String parentId(); + + /** + * Deletes the virtual network rule. + */ + @Method + void delete(); + + /** + * Deletes the virtual network rule asynchronously. + * + * @return a representation of the deferred computation of this call + */ + @Method + Completable deleteAsync(); + + + /************************************************************** + * Fluent interfaces to provision a SQL Virtual Network Rule + **************************************************************/ + + /** + * Container interface for all the definitions that need to be implemented. + * + * @param the stage of the parent definition to return to after attaching this definition + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface SqlVirtualNetworkRuleDefinition extends + SqlVirtualNetworkRule.DefinitionStages.Blank, + SqlVirtualNetworkRule.DefinitionStages.WithSubnet, + SqlVirtualNetworkRule.DefinitionStages.WithServiceEndpoint, + SqlVirtualNetworkRule.DefinitionStages.WithAttach { + } + + /** + * Grouping of all the SQL Virtual Network Rule definition stages. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface DefinitionStages { + /** + * The first stage of the SQL Server Virtual Network Rule definition. + * + * @param the stage of the parent definition to return to after attaching this definition + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface Blank extends + SqlVirtualNetworkRule.DefinitionStages.WithSubnet { + } + + /** + * The SQL Virtual Network Rule definition to set the virtual network ID and the subnet name. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithSubnet { + /** + * Sets the virtual network ID and the subnet name for the SQL server Virtual Network Rule. + * + * @param networkId the virtual network ID to be used + * @param subnetName the name of the subnet within the virtual network to be used + * @return The next stage of the definition. + */ + SqlVirtualNetworkRule.DefinitionStages.WithServiceEndpoint withSubnet(String networkId, String subnetName); + } + + /** + * The SQL Virtual Network Rule definition to set ignore flag for the missing subnet's SQL service endpoint entry. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithServiceEndpoint extends SqlVirtualNetworkRule.DefinitionStages.WithAttach { + /** + * Sets the flag to ignore the missing subnet's SQL service endpoint entry. + *

+ * Virtual Machines in the subnet will not be able to connect to the SQL server until Microsoft.Sql + * service endpoint is added to the subnet + * + * @return The next stage of the definition. + */ + SqlVirtualNetworkRule.DefinitionStages.WithAttach ignoreMissingSqlServiceEndpoint(); + } + + /** The final stage of the SQL Virtual Network Rule definition. + *

+ * At this stage, any remaining optional settings can be specified, or the SQL Virtual Network Rule definition + * can be attached to the parent SQL Server definition. + * @param the stage of the parent definition to return to after attaching this definition + */ + interface WithAttach extends + Attachable.InDefinition { + } + } + + /** + * The template for a SQL Virtual Network Rule update operation, containing all the settings that can be modified. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface Update extends + SqlVirtualNetworkRule.UpdateStages.WithSubnet, + SqlVirtualNetworkRule.UpdateStages.WithServiceEndpoint, + Appliable { + } + + /** + * Grouping of all the SQL Virtual Network Rule update stages. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface UpdateStages { + /** + * The SQL Virtual Network Rule definition to set the virtual network ID and the subnet name. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithSubnet { + /** + * Sets the virtual network ID and the subnet name for the SQL server Virtual Network Rule. + * + * @param networkId the virtual network ID to be used + * @param subnetName the name of the subnet within the virtual network to be used + * @return The next stage of the definition. + */ + SqlVirtualNetworkRule.Update withSubnet(String networkId, String subnetName); + } + + /** + * The SQL Virtual Network Rule definition to set ignore flag for the missing subnet's SQL service endpoint entry. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithServiceEndpoint { + /** + * Sets the flag to ignore the missing subnet's SQL service endpoint entry. + *

+ * Virtual Machines in the subnet will not be able to connect to the SQL server until Microsoft.Sql + * service endpoint is added to the subnet + * + * @return The next stage of the definition. + */ + SqlVirtualNetworkRule.Update ignoreMissingSqlServiceEndpoint(); + } + } +} diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlVirtualNetworkRuleOperations.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlVirtualNetworkRuleOperations.java new file mode 100644 index 00000000000..709c28effe1 --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/SqlVirtualNetworkRuleOperations.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql; + +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating; +import com.microsoft.azure.management.resources.fluentcore.model.Creatable; + +/** + * A representation of the Azure SQL Virtual Network rule operations. + */ +@Fluent +@Beta(Beta.SinceVersion.V1_8_0) +public interface SqlVirtualNetworkRuleOperations extends + SupportsCreating, + SqlChildrenOperations { + + /** + * Container interface for all the definitions that need to be implemented. + */ + interface SqlVirtualNetworkRuleOperationsDefinition extends + SqlVirtualNetworkRuleOperations.DefinitionStages.WithSqlServer, + SqlVirtualNetworkRuleOperations.DefinitionStages.WithSubnet, + SqlVirtualNetworkRuleOperations.DefinitionStages.WithServiceEndpoint, + SqlVirtualNetworkRuleOperations.DefinitionStages.WithCreate { + } + + /** + * Grouping of all the SQL Virtual Network Rule definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the SQL Server Virtual Network Rule definition. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithSqlServer { + /** + * Sets the parent SQL server name and resource group it belongs to. + * + * @param resourceGroupName the name of the resource group the parent SQL server + * @param sqlServerName the parent SQL server name + * @return The next stage of the definition. + */ + SqlVirtualNetworkRuleOperations.DefinitionStages.WithSubnet withExistingSqlServer(String resourceGroupName, String sqlServerName); + + /** + * Sets the parent SQL server for the new Virtual Network Rule. + * + * @param sqlServerId the parent SQL server ID + * @return The next stage of the definition. + */ + SqlVirtualNetworkRuleOperations.DefinitionStages.WithSubnet withExistingSqlServerId(String sqlServerId); + + /** + * Sets the parent SQL server for the new Virtual Network Rule. + * + * @param sqlServer the parent SQL server + * @return The next stage of the definition. + */ + SqlVirtualNetworkRuleOperations.DefinitionStages.WithSubnet withExistingSqlServer(SqlServer sqlServer); + } + + /** + * The SQL Virtual Network Rule definition to set the virtual network ID and the subnet name. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithSubnet { + /** + * Sets the virtual network ID and the subnet name for the SQL server Virtual Network Rule. + * + * @param networkId the virtual network ID to be used + * @param subnetName the name of the subnet within the virtual network to be used + * @return The next stage of the definition. + */ + SqlVirtualNetworkRuleOperations.DefinitionStages.WithServiceEndpoint withSubnet(String networkId, String subnetName); + } + + /** + * The SQL Virtual Network Rule definition to set ignore flag for the missing subnet's SQL service endpoint entry. + */ + @Beta(Beta.SinceVersion.V1_8_0) + interface WithServiceEndpoint extends SqlVirtualNetworkRuleOperations.DefinitionStages.WithCreate { + /** + * Sets the flag to ignore the missing subnet's SQL service endpoint entry. + *

+ * Virtual Machines in the subnet will not be able to connect to the SQL server until Microsoft.Sql + * service endpoint is added to the subnet + * + * @return The next stage of the definition. + */ + SqlVirtualNetworkRuleOperations.DefinitionStages.WithCreate ignoreMissingSqlServiceEndpoint(); + } + /** + * The final stage of the SQL Virtual Network Rule definition. + */ + interface WithCreate extends Creatable { + } + } + + /** + * Grouping of the Azure SQL Server Virtual Network Rule common actions. + */ + interface SqlVirtualNetworkRuleActionsDefinition extends SqlChildrenActionsDefinition { + /** + * Begins the definition of a new SQL Virtual Network Rule to be added to this server. + * + * @param virtualNetworkRuleName the name of the new SQL Virtual Network Rule + * @return the first stage of the new SQL Virtual Network Rule definition + */ + SqlVirtualNetworkRuleOperations.DefinitionStages.WithSubnet define(String virtualNetworkRuleName); + } +} \ No newline at end of file diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlChildrenOperationsImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlChildrenOperationsImpl.java new file mode 100644 index 00000000000..0486d46cbc0 --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlChildrenOperationsImpl.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql.implementation; + +import com.microsoft.azure.management.apigeneration.LangDefinition; +import com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils; +import com.microsoft.azure.management.sql.SqlChildrenOperations; +import com.microsoft.azure.management.sql.SqlServer; +import rx.Completable; +import rx.Observable; + +import java.util.List; +import java.util.Objects; + +/** + * Implementation for SQL Server children operations. + * + * @param the fluent model type of the child resource + */ +@LangDefinition +public abstract class SqlChildrenOperationsImpl + implements + SqlChildrenOperations, + SqlChildrenOperations.SqlChildrenActionsDefinition { + + protected SqlServerManager sqlServerManager; + protected SqlServer sqlServer; + + SqlChildrenOperationsImpl(SqlServer parent, SqlServerManager sqlServerManager) { + Objects.requireNonNull(sqlServerManager); + this.sqlServer = parent; + this.sqlServerManager = sqlServerManager; + } + + @Override + public FluentModelT get(String name) { + if (this.sqlServer == null) { + return null; + } + return this.getBySqlServer(this.sqlServer, name); + } + + @Override + public Observable getAsync(String name) { + if (this.sqlServer == null) { + return null; + } + return this.getBySqlServerAsync(this.sqlServer, name); + } + + @Override + public FluentModelT getById(String id) { + Objects.requireNonNull(id); + return this.getBySqlServer(ResourceUtils.groupFromResourceId(id), + ResourceUtils.nameFromResourceId(ResourceUtils.parentRelativePathFromResourceId(id)), + ResourceUtils.nameFromResourceId(id)); + } + + @Override + public Observable getByIdAsync(String id) { + Objects.requireNonNull(id); + return this.getBySqlServerAsync(ResourceUtils.groupFromResourceId(id), + ResourceUtils.nameFromResourceId(ResourceUtils.parentRelativePathFromResourceId(id)), + ResourceUtils.nameFromResourceId(id)); + } + + @Override + public void delete(String name) { + if (this.sqlServer != null) { + this.deleteBySqlServer(this.sqlServer.resourceGroupName(), this.sqlServer.name(), name); + } + } + + @Override + public Completable deleteAsync(String name) { + if (this.sqlServer == null) { + return null; + } + return this.deleteBySqlServerAsync(this.sqlServer.resourceGroupName(), this.sqlServer.name(), name); + } + + @Override + public void deleteById(String id) { + Objects.requireNonNull(id); + this.deleteBySqlServer(ResourceUtils.groupFromResourceId(id), + ResourceUtils.nameFromResourceId(ResourceUtils.parentRelativePathFromResourceId(id)), + ResourceUtils.nameFromResourceId(id)); + } + + @Override + public Completable deleteByIdAsync(String id) { + Objects.requireNonNull(id); + return this.deleteBySqlServerAsync(ResourceUtils.groupFromResourceId(id), + ResourceUtils.nameFromResourceId(ResourceUtils.parentRelativePathFromResourceId(id)), + ResourceUtils.nameFromResourceId(id)); + } + + @Override + public List list() { + if (this.sqlServer == null) { + return null; + } + return this.listBySqlServer(this.sqlServer); + } + + @Override + public Observable listAsync() { + if (sqlServer == null) { + return null; + } + return this.listBySqlServerAsync(this.sqlServer); + } +} diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlDatabaseOperationsImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlDatabaseOperationsImpl.java index f66a13eb99d..55ae3a7e7e8 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlDatabaseOperationsImpl.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlDatabaseOperationsImpl.java @@ -25,8 +25,8 @@ @LangDefinition public class SqlDatabaseOperationsImpl implements - SqlDatabaseOperations, - SqlDatabaseOperations.SqlDatabaseActionsDefinition { + SqlDatabaseOperations, + SqlDatabaseOperations.SqlDatabaseActionsDefinition { private SqlServerManager manager; private SqlServerImpl sqlServer; @@ -71,6 +71,18 @@ public SqlDatabase getBySqlServer(SqlServer sqlServer, String name) { return (inner != null) ? new SqlDatabaseImpl(inner.name(), (SqlServerImpl) sqlServer, inner, manager) : null; } + @Override + public Observable getBySqlServerAsync(final SqlServer sqlServer, String name) { + Objects.requireNonNull(sqlServer); + return sqlServer.manager().inner().databases().getAsync(sqlServer.resourceGroupName(), sqlServer.name(), name) + .map(new Func1() { + @Override + public SqlDatabase call(DatabaseInner inner) { + return new SqlDatabaseImpl(inner.name(), (SqlServerImpl) sqlServer, inner, manager); + } + }); + } + @Override public SqlDatabase get(String name) { if (sqlServer == null) { @@ -181,6 +193,11 @@ public List listBySqlServer(SqlServer sqlServer) { return Collections.unmodifiableList(firewallRuleSet); } + @Override + public Observable listBySqlServerAsync(SqlServer sqlServer) { + return null; + } + @Override public List list() { if (sqlServer == null) { diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlElasticPoolOperationsImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlElasticPoolOperationsImpl.java index c1281dfa1a7..9840bc0e21a 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlElasticPoolOperationsImpl.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlElasticPoolOperationsImpl.java @@ -71,6 +71,18 @@ public SqlElasticPool getBySqlServer(SqlServer sqlServer, String name) { return (inner != null) ? new SqlElasticPoolImpl(inner.name(), (SqlServerImpl) sqlServer, inner, manager) : null; } + @Override + public Observable getBySqlServerAsync(final SqlServer sqlServer, String name) { + Objects.requireNonNull(sqlServer); + return sqlServer.manager().inner().elasticPools().getAsync(sqlServer.resourceGroupName(), sqlServer.name(), name) + .map(new Func1() { + @Override + public SqlElasticPool call(ElasticPoolInner inner) { + return new SqlElasticPoolImpl(inner.name(), (SqlServerImpl) sqlServer, inner, manager); + } + }); + } + @Override public SqlElasticPool get(String name) { if (sqlServer == null) { @@ -197,6 +209,24 @@ public List listBySqlServer(SqlServer sqlServer) { return Collections.unmodifiableList(elasticPoolSet); } + @Override + public Observable listBySqlServerAsync(final SqlServer sqlServer) { + Objects.requireNonNull(sqlServer); + return sqlServer.manager().inner().elasticPools().listByServerAsync(sqlServer.resourceGroupName(), sqlServer.name()) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List elasticPoolInners) { + return Observable.from(elasticPoolInners); + } + }) + .map(new Func1() { + @Override + public SqlElasticPool call(ElasticPoolInner inner) { + return new SqlElasticPoolImpl(inner.name(), (SqlServerImpl) sqlServer, inner, manager); + } + }); + } + @Override public SqlElasticPoolImpl define(String name) { SqlElasticPoolImpl result = sqlElasticPools.defineIndependentElasticPool(name); diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlFirewallRuleImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlFirewallRuleImpl.java index 9cd84b83f96..a8255a7371b 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlFirewallRuleImpl.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlFirewallRuleImpl.java @@ -7,6 +7,7 @@ import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.resources.fluentcore.arm.Region; +import com.microsoft.azure.management.resources.fluentcore.arm.ResourceId; import com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ExternalChildResourceImpl; import com.microsoft.azure.management.sql.SqlFirewallRule; @@ -206,8 +207,10 @@ public SqlFirewallRuleImpl withExistingSqlServer(SqlServer sqlServer) { @Override public SqlFirewallRuleImpl withExistingSqlServerId(String sqlServerId) { - this.resourceGroupName = ResourceUtils.groupFromResourceId(sqlServerId); - this.sqlServerName = ResourceUtils.nameFromResourceId(ResourceUtils.parentRelativePathFromResourceId(sqlServerId)); + Objects.requireNonNull(sqlServerId); + ResourceId resourceId = ResourceId.fromString(sqlServerId); + this.resourceGroupName = resourceId.resourceGroupName(); + this.sqlServerName = resourceId.name(); return this; } diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlFirewallRuleOperationsImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlFirewallRuleOperationsImpl.java index 1efc4307b79..70db3464b0f 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlFirewallRuleOperationsImpl.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlFirewallRuleOperationsImpl.java @@ -53,7 +53,8 @@ public SqlFirewallRule getBySqlServer(String resourceGroupName, String sqlServer @Override public Observable getBySqlServerAsync(final String resourceGroupName, final String sqlServerName, final String name) { - return this.sqlServerManager.inner().firewallRules().getAsync(resourceGroupName, sqlServerName, name) + return this.sqlServerManager.inner().firewallRules() + .getAsync(resourceGroupName, sqlServerName, name) .map(new Func1() { @Override public SqlFirewallRule call(FirewallRuleInner inner) { @@ -64,27 +65,38 @@ public SqlFirewallRule call(FirewallRuleInner inner) { @Override public SqlFirewallRule getBySqlServer(SqlServer sqlServer, String name) { - if (sqlServer == null) { - return null; - } + Objects.requireNonNull(sqlServer); FirewallRuleInner inner = this.sqlServerManager.inner().firewallRules().get(sqlServer.resourceGroupName(), sqlServer.name(), name); - return (inner != null) ? new SqlFirewallRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, sqlServerManager) : null; + return (inner != null) ? new SqlFirewallRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, sqlServer.manager()) : null; + } + + @Override + public Observable getBySqlServerAsync(final SqlServer sqlServer, final String name) { + Objects.requireNonNull(sqlServer); + return this.sqlServerManager.inner().firewallRules() + .getAsync(sqlServer.resourceGroupName(), sqlServer.name(), name) + .map(new Func1() { + @Override + public SqlFirewallRule call(FirewallRuleInner inner) { + return new SqlFirewallRuleImpl(name, (SqlServerImpl) sqlServer, inner, sqlServer.manager()); + } + }); } @Override public SqlFirewallRule get(String name) { - if (sqlServer == null) { + if (this.sqlServer == null) { return null; } - return this.getBySqlServer(this.sqlServer.resourceGroupName(), this.sqlServer.name(), name); + return this.getBySqlServer(this.sqlServer, name); } @Override public Observable getAsync(String name) { - if (sqlServer == null) { + if (this.sqlServer == null) { return null; } - return this.getBySqlServerAsync(this.sqlServer.resourceGroupName(), this.sqlServer.name(), name); + return this.getBySqlServerAsync(this.sqlServer, name); } @Override @@ -131,14 +143,14 @@ public Completable deleteByIdAsync(String id) { @Override public void delete(String name) { - if (sqlServer != null) { + if (this.sqlServer != null) { this.deleteBySqlServer(this.sqlServer.resourceGroupName(), this.sqlServer.name(), name); } } @Override public Completable deleteAsync(String name) { - if (sqlServer == null) { + if (this.sqlServer == null) { return null; } return this.deleteBySqlServerAsync(this.sqlServer.resourceGroupName(), this.sqlServer.name(), name); @@ -147,8 +159,11 @@ public Completable deleteAsync(String name) { @Override public List listBySqlServer(String resourceGroupName, String sqlServerName) { List firewallRuleSet = new ArrayList<>(); - for (FirewallRuleInner inner : this.sqlServerManager.inner().firewallRules().listByServer(resourceGroupName, sqlServerName)) { - firewallRuleSet.add(new SqlFirewallRuleImpl(resourceGroupName, sqlServerName, inner.name(), inner, this.sqlServerManager)); + List firewallRuleInners = this.sqlServerManager.inner().firewallRules().listByServer(resourceGroupName, sqlServerName); + if (firewallRuleInners != null) { + for (FirewallRuleInner inner : firewallRuleInners) { + firewallRuleSet.add(new SqlFirewallRuleImpl(resourceGroupName, sqlServerName, inner.name(), inner, this.sqlServerManager)); + } } return Collections.unmodifiableList(firewallRuleSet); } @@ -172,21 +187,39 @@ public SqlFirewallRule call(FirewallRuleInner inner) { @Override public List listBySqlServer(SqlServer sqlServer) { + Objects.requireNonNull(sqlServer); List firewallRuleSet = new ArrayList<>(); - if (sqlServer != null) { - for (FirewallRuleInner inner : this.sqlServerManager.inner().firewallRules().listByServer(sqlServer.resourceGroupName(), sqlServer.name())) { - firewallRuleSet.add(new SqlFirewallRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, this.sqlServerManager)); - } + for (FirewallRuleInner inner : sqlServer.manager().inner().firewallRules().listByServer(sqlServer.resourceGroupName(), sqlServer.name())) { + firewallRuleSet.add(new SqlFirewallRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, sqlServer.manager())); } return Collections.unmodifiableList(firewallRuleSet); } + @Override + public Observable listBySqlServerAsync(final SqlServer sqlServer) { + Objects.requireNonNull(sqlServer); + return sqlServer.manager().inner().firewallRules() + .listByServerAsync(sqlServer.resourceGroupName(), sqlServer.name()) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(List firewallRuleInners) { + return Observable.from(firewallRuleInners); + } + }) + .map(new Func1() { + @Override + public SqlFirewallRule call(FirewallRuleInner inner) { + return new SqlFirewallRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, sqlServer.manager()); + } + }); + } + @Override public List list() { - if (sqlServer == null) { + if (this.sqlServer == null) { return null; } - return this.listBySqlServer(this.sqlServer.resourceGroupName(), this.sqlServer.name()); + return this.listBySqlServer(this.sqlServer); } @Override diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerDnsAliasImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerDnsAliasImpl.java new file mode 100644 index 00000000000..ec463b6d1d8 --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerDnsAliasImpl.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql.implementation; + +import com.microsoft.azure.management.apigeneration.LangDefinition; +import com.microsoft.azure.management.resources.fluentcore.arm.ResourceId; +import com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils; +import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ExternalChildResourceImpl; +import com.microsoft.azure.management.sql.SqlServer; +import com.microsoft.azure.management.sql.SqlServerDnsAlias; +import com.microsoft.azure.management.sql.SqlServerDnsAliasOperations; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; + +import java.util.Objects; + +/** + * Implementation for SqlFirewallRule. + */ +@LangDefinition +public class SqlServerDnsAliasImpl + extends + ExternalChildResourceImpl + implements + SqlServerDnsAlias, + SqlServerDnsAliasOperations.SqlServerDnsAliasOperationsDefinition { + + private SqlServerManager sqlServerManager; + private String resourceGroupName; + private String sqlServerName; + + /** + * Creates an instance of external child resource in-memory. + * + * @param name the name of this external child resource + * @param parent reference to the parent of this external child resource + * @param innerObject reference to the inner object representing this external child resource + * @param sqlServerManager reference to the SQL server manager that accesses firewall rule operations + */ + SqlServerDnsAliasImpl(String name, SqlServerImpl parent, ServerDnsAliasInner innerObject, SqlServerManager sqlServerManager) { + super(name, parent, innerObject); + + Objects.requireNonNull(parent); + Objects.requireNonNull(sqlServerManager); + this.sqlServerManager = sqlServerManager; + this.resourceGroupName = parent.resourceGroupName(); + this.sqlServerName = parent.name(); + } + + /** + * Creates an instance of external child resource in-memory. + * + * @param resourceGroupName the resource group name + * @param sqlServerName the parent SQL server name + * @param name the name of this external child resource + * @param innerObject reference to the inner object representing this external child resource + * @param sqlServerManager reference to the SQL server manager that accesses firewall rule operations + */ + SqlServerDnsAliasImpl(String resourceGroupName, String sqlServerName, String name, ServerDnsAliasInner innerObject, SqlServerManager sqlServerManager) { + super(name, null, innerObject); + Objects.requireNonNull(sqlServerManager); + this.sqlServerManager = sqlServerManager; + this.resourceGroupName = resourceGroupName; + this.sqlServerName = sqlServerName; + } + + /** + * Creates an instance of external child resource in-memory. + * + * @param name the name of this external child resource + * @param innerObject reference to the inner object representing this external child resource + * @param sqlServerManager reference to the SQL server manager that accesses firewall rule operations + */ + SqlServerDnsAliasImpl(String name, ServerDnsAliasInner innerObject, SqlServerManager sqlServerManager) { + super(name, null, innerObject); + Objects.requireNonNull(sqlServerManager); + this.sqlServerManager = sqlServerManager; + if (innerObject != null && innerObject.id() != null) { + try { + ResourceId resourceId = ResourceId.fromString(innerObject.id()); + this.resourceGroupName = resourceId.resourceGroupName(); + this.sqlServerName = resourceId.parent().name(); + } catch (NullPointerException e) { + } + } + } + + @Override + public String resourceGroupName() { + return this.resourceGroupName; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String sqlServerName() { + return this.sqlServerName; + } + + @Override + public String azureDnsRecord() { + return this.inner().azureDnsRecord(); + } + + @Override + public String parentId() { + return ResourceUtils.parentResourceIdFromResourceId(this.inner().id()); + } + + @Override + public void delete() { + this.sqlServerManager.inner().serverDnsAliases() + .delete(this.resourceGroupName, this.sqlServerName, this.name()); + } + + @Override + public Completable deleteAsync() { + return this.deleteResourceAsync().toCompletable(); + } + + @Override + public SqlServerDnsAliasImpl withExistingSqlServer(String resourceGroupName, String sqlServerName) { + this.resourceGroupName = resourceGroupName; + this.sqlServerName = sqlServerName; + return this; + } + + @Override + public SqlServerDnsAliasImpl withExistingSqlServerId(String sqlServerId) { + Objects.requireNonNull(sqlServerId); + ResourceId resourceId = ResourceId.fromString(sqlServerId); + this.resourceGroupName = resourceId.resourceGroupName(); + this.sqlServerName = resourceId.name(); + return this; + } + + @Override + public SqlServerDnsAliasImpl withExistingSqlServer(SqlServer sqlServer) { + Objects.requireNonNull(sqlServer); + this.resourceGroupName = sqlServer.resourceGroupName(); + this.sqlServerName = sqlServer.name(); + return this; + } + + @Override + public Observable createResourceAsync() { + final SqlServerDnsAliasImpl self = this; + return this.sqlServerManager.inner().serverDnsAliases() + .createOrUpdateAsync(self.resourceGroupName, self.sqlServerName, self.name()) + .map(new Func1() { + @Override + public SqlServerDnsAlias call(ServerDnsAliasInner serverDnsAliasInner) { + self.setInner(serverDnsAliasInner); + return self; + } + }); + } + + @Override + public Observable updateResourceAsync() { + return this.createResourceAsync(); + } + + @Override + public Observable deleteResourceAsync() { + return this.sqlServerManager.inner().serverDnsAliases() + .deleteAsync(this.resourceGroupName, this.sqlServerName, this.name()); + } + + @Override + protected Observable getInnerAsync() { + return this.sqlServerManager.inner().serverDnsAliases() + .getAsync(this.resourceGroupName, this.sqlServerName, this.name()); + } +} diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerDnsAliasOperationsImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerDnsAliasOperationsImpl.java new file mode 100644 index 00000000000..4b41b39cfce --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerDnsAliasOperationsImpl.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql.implementation; + +import com.microsoft.azure.Page; +import com.microsoft.azure.management.apigeneration.LangDefinition; +import com.microsoft.azure.management.resources.fluentcore.arm.ResourceId; +import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ExternalChildResourceImpl; +import com.microsoft.azure.management.sql.SqlServer; +import com.microsoft.azure.management.sql.SqlServerDnsAlias; +import com.microsoft.azure.management.sql.SqlServerDnsAliasOperations; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; + +/** + * Implementation for SQL Server DNS alias operations. + */ +@LangDefinition +public class SqlServerDnsAliasOperationsImpl + extends + SqlChildrenOperationsImpl + implements + SqlServerDnsAliasOperations, + SqlServerDnsAliasOperations.SqlServerDnsAliasActionsDefinition { + + private static final String DNS_ALIASES = "/dnsAliases/"; + + SqlServerDnsAliasOperationsImpl(SqlServer parent, SqlServerManager sqlServerManager) { + super(parent, sqlServerManager); + Objects.requireNonNull(parent); + } + + SqlServerDnsAliasOperationsImpl(SqlServerManager sqlServerManager) { + super(null, sqlServerManager); + } + + @Override + public SqlServerDnsAlias getBySqlServer(String resourceGroupName, String sqlServerName, String name) { + ServerDnsAliasInner serverDnsAliasInner = this.sqlServerManager.inner().serverDnsAliases() + .get(resourceGroupName, sqlServerName, name); + return serverDnsAliasInner != null ? new SqlServerDnsAliasImpl(resourceGroupName, sqlServerName, name, serverDnsAliasInner, this.sqlServerManager) : null; + } + + @Override + public Observable getBySqlServerAsync(final String resourceGroupName, final String sqlServerName, final String name) { + final SqlServerDnsAliasOperationsImpl self = this; + return this.sqlServerManager.inner().serverDnsAliases() + .getAsync(resourceGroupName, sqlServerName, name) + .map(new Func1() { + @Override + public SqlServerDnsAlias call(ServerDnsAliasInner serverDnsAliasInner) { + return new SqlServerDnsAliasImpl(resourceGroupName, sqlServerName, name, serverDnsAliasInner, self.sqlServerManager); + } + }); + } + + @Override + public SqlServerDnsAlias getBySqlServer(SqlServer sqlServer, String name) { + Objects.requireNonNull(sqlServer); + ServerDnsAliasInner serverDnsAliasInner = sqlServer.manager().inner().serverDnsAliases() + .get(sqlServer.resourceGroupName(), sqlServer.name(), name); + return serverDnsAliasInner != null ? new SqlServerDnsAliasImpl(name, (SqlServerImpl) sqlServer, serverDnsAliasInner, sqlServer.manager()) : null; + } + + @Override + public Observable getBySqlServerAsync(final SqlServer sqlServer, final String name) { + Objects.requireNonNull(sqlServer); + return sqlServer.manager().inner().serverDnsAliases() + .getAsync(sqlServer.resourceGroupName(), sqlServer.name(), name) + .map(new Func1() { + @Override + public SqlServerDnsAlias call(ServerDnsAliasInner serverDnsAliasInner) { + return new SqlServerDnsAliasImpl(name, (SqlServerImpl) sqlServer, serverDnsAliasInner, sqlServer.manager()); + } + }); + } + + @Override + public void deleteBySqlServer(String resourceGroupName, String sqlServerName, String name) { + this.sqlServerManager.inner().serverDnsAliases().delete(resourceGroupName, sqlServerName, name); + } + + @Override + public Completable deleteBySqlServerAsync(String resourceGroupName, String sqlServerName, String name) { + return this.sqlServerManager.inner().serverDnsAliases().deleteAsync(resourceGroupName, sqlServerName, name).toCompletable(); + } + + @Override + public List listBySqlServer(String resourceGroupName, String sqlServerName) { + List serverDnsAliases = new ArrayList<>(); + List serverDnsAliasInners = this.sqlServerManager.inner().serverDnsAliases() + .listByServer(resourceGroupName, sqlServerName); + if (serverDnsAliasInners != null) { + for (ServerDnsAliasInner inner : serverDnsAliasInners) { + serverDnsAliases.add(new SqlServerDnsAliasImpl(resourceGroupName, sqlServerName, inner.name(), inner, this.sqlServerManager)); + } + } + return Collections.unmodifiableList(serverDnsAliases); + } + + @Override + public Observable listBySqlServerAsync(final String resourceGroupName, final String sqlServerName) { + final SqlServerDnsAliasOperationsImpl self = this; + return this.sqlServerManager.inner().serverDnsAliases() + .listByServerAsync(resourceGroupName, sqlServerName) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(Page serverDnsAliasInnerPage) { + return Observable.from(serverDnsAliasInnerPage.items()); + } + }) + .map(new Func1() { + @Override + public SqlServerDnsAlias call(ServerDnsAliasInner serverDnsAliasInner) { + return new SqlServerDnsAliasImpl(resourceGroupName, sqlServerName, serverDnsAliasInner.name(), serverDnsAliasInner, self.sqlServerManager); + } + }); + } + + @Override + public List listBySqlServer(SqlServer sqlServer) { + List serverDnsAliases = new ArrayList<>(); + List serverDnsAliasInners = sqlServer.manager().inner().serverDnsAliases() + .listByServer(sqlServer.resourceGroupName(), sqlServer.name()); + if (serverDnsAliasInners != null) { + for (ServerDnsAliasInner inner : serverDnsAliasInners) { + serverDnsAliases.add(new SqlServerDnsAliasImpl(inner.name(), (SqlServerImpl) sqlServer, inner, this.sqlServerManager)); + } + } + return Collections.unmodifiableList(serverDnsAliases); + } + + @Override + public Observable listBySqlServerAsync(final SqlServer sqlServer) { + return sqlServer.manager().inner().serverDnsAliases() + .listByServerAsync(sqlServer.resourceGroupName(), sqlServer.name()) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(Page serverDnsAliasInnerPage) { + return Observable.from(serverDnsAliasInnerPage.items()); + } + }) + .map(new Func1() { + @Override + public SqlServerDnsAlias call(ServerDnsAliasInner serverDnsAliasInner) { + return new SqlServerDnsAliasImpl(serverDnsAliasInner.name(), (SqlServerImpl) sqlServer, serverDnsAliasInner, sqlServer.manager()); + } + }); + } + + @Override + public void acquire(String resourceGroupName, String serverName, String dnsAliasName, String sqlServerId) { + this.sqlServerManager.inner().serverDnsAliases() + .acquire(resourceGroupName, serverName, dnsAliasName, sqlServerId + DNS_ALIASES + dnsAliasName); + } + + @Override + public Completable acquireAsync(String resourceGroupName, String serverName, String dnsAliasName, String sqlServerId) { + return this.sqlServerManager.inner().serverDnsAliases() + .acquireAsync(resourceGroupName, serverName, dnsAliasName, sqlServerId + DNS_ALIASES + dnsAliasName).toCompletable(); + } + + @Override + public void acquire(String dnsAliasName, String oldSqlServerId, String newSqlServerId) { + Objects.requireNonNull(oldSqlServerId); + ResourceId resourceId = ResourceId.fromString(oldSqlServerId); + this.sqlServerManager.inner().serverDnsAliases() + .acquire(resourceId.resourceGroupName(), resourceId.name(), dnsAliasName, newSqlServerId + DNS_ALIASES + dnsAliasName); + } + + @Override + public Completable acquireAsync(String dnsAliasName, String oldSqlServerId, String newSqlServerId) { + Objects.requireNonNull(oldSqlServerId); + ResourceId resourceId = ResourceId.fromString(oldSqlServerId); + return this.sqlServerManager.inner().serverDnsAliases() + .acquireAsync(resourceId.resourceGroupName(), resourceId.name(), dnsAliasName, newSqlServerId + DNS_ALIASES + dnsAliasName).toCompletable(); + } + + @Override + public SqlServerDnsAliasImpl define(String name) { + SqlServerDnsAliasImpl result = new SqlServerDnsAliasImpl(name, new ServerDnsAliasInner(), this.sqlServerManager); + result.setPendingOperation(ExternalChildResourceImpl.PendingOperation.ToBeCreated); + return (this.sqlServer != null) ? result.withExistingSqlServer(this.sqlServer) : result; + } + + @Override + public void acquire(String dnsAliasName, String sqlServerId) { + this.acquire(this.sqlServer.resourceGroupName(), this.sqlServer.name(), dnsAliasName, sqlServerId); + } + + @Override + public Completable acquireAsync(String dnsAliasName, String sqlServerId) { + return this.acquireAsync(this.sqlServer.resourceGroupName(), this.sqlServer.name(), dnsAliasName, sqlServerId); + } +} diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerImpl.java index efb0a6716e6..ec869adae1f 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerImpl.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServerImpl.java @@ -25,6 +25,9 @@ import com.microsoft.azure.management.sql.SqlRestorableDroppedDatabase; import com.microsoft.azure.management.sql.SqlServer; import com.microsoft.azure.management.sql.SqlServerAutomaticTuning; +import com.microsoft.azure.management.sql.SqlServerDnsAliasOperations; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRule; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRuleOperations; import rx.Completable; import rx.Observable; import rx.functions.Func1; @@ -55,8 +58,14 @@ public class SqlServerImpl private FunctionalTaskItem sqlADAdminCreator; private boolean allowAzureServicesAccess; private SqlFirewallRulesAsExternalChildResourcesImpl sqlFirewallRules; + private SqlFirewallRuleOperations.SqlFirewallRuleActionsDefinition sqlFirewallRuleOperations; + private SqlVirtualNetworkRulesAsExternalChildResourcesImpl sqlVirtualNetworkRules; + private SqlVirtualNetworkRuleOperations.SqlVirtualNetworkRuleActionsDefinition sqlVirtualNetworkRuleOperations; private SqlElasticPoolsAsExternalChildResourcesImpl sqlElasticPools; + private SqlElasticPoolOperations.SqlElasticPoolActionsDefinition sqlElasticPoolOperations; private SqlDatabasesAsExternalChildResourcesImpl sqlDatabases; + private SqlDatabaseOperations.SqlDatabaseActionsDefinition sqlDatabaseOperations; + private SqlServerDnsAliasOperations.SqlServerDnsAliasActionsDefinition sqlServerDnsAliasOperations; protected SqlServerImpl(String name, ServerInner innerObject, SqlServerManager manager) { super(name, innerObject, manager); @@ -64,6 +73,7 @@ protected SqlServerImpl(String name, ServerInner innerObject, SqlServerManager m this.sqlADAdminCreator = null; this.allowAzureServicesAccess = true; this.sqlFirewallRules = new SqlFirewallRulesAsExternalChildResourcesImpl(this, "SqlFirewallRule"); + this.sqlVirtualNetworkRules = new SqlVirtualNetworkRulesAsExternalChildResourcesImpl(this, "SqlVirtualNetworkRule"); this.sqlElasticPools = new SqlElasticPoolsAsExternalChildResourcesImpl(this, "SqlElasticPool"); this.sqlDatabases = new SqlDatabasesAsExternalChildResourcesImpl(this, "SqlDatabase"); } @@ -319,7 +329,18 @@ public SqlServerAutomaticTuning getServerAutomaticTuning() { @Override public SqlFirewallRuleOperations.SqlFirewallRuleActionsDefinition firewallRules() { - return new SqlFirewallRuleOperationsImpl(this, this.manager()); + if (this.sqlFirewallRuleOperations == null) { + this.sqlFirewallRuleOperations = new SqlFirewallRuleOperationsImpl(this, this.manager()); + } + return this.sqlFirewallRuleOperations; + } + + @Override + public SqlVirtualNetworkRuleOperations.SqlVirtualNetworkRuleActionsDefinition virtualNetworkRules() { + if (this.sqlVirtualNetworkRuleOperations == null) { + this.sqlVirtualNetworkRuleOperations = new SqlVirtualNetworkRuleOperationsImpl(this, this.manager()); + } + return this.sqlVirtualNetworkRuleOperations; } @Override @@ -381,7 +402,7 @@ public SqlServerImpl withNewFirewallRule(String startIPAddress, String endIPAddr @Override public SqlServerImpl withNewFirewallRule(String startIPAddress, String endIPAddress, String firewallRuleName) { - return sqlFirewallRules + return this.sqlFirewallRules .defineInlineFirewallRule(firewallRuleName) .withStartIPAddress(startIPAddress) .withEndIPAddress(endIPAddress) @@ -394,14 +415,33 @@ public SqlServerImpl withoutFirewallRule(String firewallRuleName) { return this; } + @Override + public SqlVirtualNetworkRule.DefinitionStages.Blank defineVirtualNetworkRule(String virtualNetworkRuleName) { + return this.sqlVirtualNetworkRules.defineInlineVirtualNetworkRule(virtualNetworkRuleName); + } + @Override public SqlElasticPoolOperations.SqlElasticPoolActionsDefinition elasticPools() { - return new SqlElasticPoolOperationsImpl(this, this.manager()); + if (this.sqlElasticPoolOperations == null) { + this.sqlElasticPoolOperations = new SqlElasticPoolOperationsImpl(this, this.manager()); + } + return this.sqlElasticPoolOperations; } @Override public SqlDatabaseOperations.SqlDatabaseActionsDefinition databases() { - return new SqlDatabaseOperationsImpl(this, this.manager()); + if (this.sqlDatabaseOperations == null) { + this.sqlDatabaseOperations = new SqlDatabaseOperationsImpl(this, this.manager()); + } + return this.sqlDatabaseOperations; + } + + @Override + public SqlServerDnsAliasOperations.SqlServerDnsAliasActionsDefinition dnsAliases() { + if (this.sqlServerDnsAliasOperations == null) { + this.sqlServerDnsAliasOperations = new SqlServerDnsAliasOperationsImpl(this, this.manager()); + } + return this.sqlServerDnsAliasOperations; } @Override @@ -411,7 +451,7 @@ public SqlElasticPoolImpl defineElasticPool(String name) { @Override public SqlServerImpl withNewElasticPool(String elasticPoolName, ElasticPoolEditions elasticPoolEdition) { - return sqlElasticPools + return this.sqlElasticPools .defineInlineElasticPool(elasticPoolName) .withEdition(elasticPoolEdition) .attach(); diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServersImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServersImpl.java index 3d57d71a7d4..634569ff023 100644 --- a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServersImpl.java +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlServersImpl.java @@ -16,6 +16,7 @@ import com.microsoft.azure.management.sql.SqlFirewallRuleOperations; import com.microsoft.azure.management.sql.SqlServer; import com.microsoft.azure.management.sql.SqlServers; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRuleOperations; import rx.Observable; import rx.functions.Func1; @@ -33,8 +34,10 @@ class SqlServersImpl implements SqlServers { private SqlFirewallRuleOperations firewallRules; + private SqlVirtualNetworkRuleOperations virtualNetworkRules; private SqlElasticPoolOperations elasticPools; private SqlDatabaseOperations databases; + private SqlServerDnsAliasOperationsImpl dnsAliases; protected SqlServersImpl(SqlServerManager manager) { super(manager.inner().servers(), manager); @@ -62,16 +65,34 @@ public SqlServer.DefinitionStages.Blank define(String name) { @Override public SqlFirewallRuleOperations firewallRules() { - if (firewallRules == null) { + if (this.firewallRules == null) { this.firewallRules = new SqlFirewallRuleOperationsImpl(this.manager()); } return this.firewallRules; } + @Override + public SqlVirtualNetworkRuleOperations virtualNetworkRules() { + if (this.virtualNetworkRules == null) { + this.virtualNetworkRules = new SqlVirtualNetworkRuleOperationsImpl(this.manager()); + } + + return this.virtualNetworkRules; + } + + @Override + public SqlServerDnsAliasOperationsImpl dnsAliases() { + if (this.dnsAliases == null) { + this.dnsAliases = new SqlServerDnsAliasOperationsImpl(this.manager()); + } + + return this.dnsAliases; + } + @Override public SqlElasticPoolOperations elasticPools() { - if (elasticPools == null) { + if (this.elasticPools == null) { this.elasticPools = new SqlElasticPoolOperationsImpl(this.manager()); } @@ -80,7 +101,7 @@ public SqlElasticPoolOperations elasticPools() { @Override public SqlDatabaseOperations databases() { - if (databases == null) { + if (this.databases == null) { this.databases = new SqlDatabaseOperationsImpl(this.manager()); } diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRuleImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRuleImpl.java new file mode 100644 index 00000000000..6b4d30341ab --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRuleImpl.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql.implementation; + +import com.microsoft.azure.management.apigeneration.LangDefinition; +import com.microsoft.azure.management.resources.fluentcore.arm.ResourceId; +import com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils; +import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ExternalChildResourceImpl; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRule; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRuleOperations; +import com.microsoft.azure.management.sql.SqlServer; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; + +import java.util.Objects; + +/** + * Implementation for SQL Virtual Network Rule interface. + */ +@LangDefinition +public class SqlVirtualNetworkRuleImpl + extends + ExternalChildResourceImpl + implements + SqlVirtualNetworkRule, + SqlVirtualNetworkRule.SqlVirtualNetworkRuleDefinition, + SqlVirtualNetworkRule.Update, + SqlVirtualNetworkRuleOperations.SqlVirtualNetworkRuleOperationsDefinition { + + private SqlServerManager sqlServerManager; + private String resourceGroupName; + private String sqlServerName; + + /** + * Creates an instance of external child resource in-memory. + * + * @param name the name of this external child resource + * @param parent reference to the parent of this external child resource + * @param innerObject reference to the inner object representing this external child resource + * @param sqlServerManager reference to the SQL server manager that accesses virtual network rule operations + */ + SqlVirtualNetworkRuleImpl(String name, SqlServerImpl parent, VirtualNetworkRuleInner innerObject, SqlServerManager sqlServerManager) { + super(name, parent, innerObject); + + Objects.requireNonNull(parent); + Objects.requireNonNull(sqlServerManager); + this.sqlServerManager = sqlServerManager; + this.resourceGroupName = parent.resourceGroupName(); + this.sqlServerName = parent.name(); + } + + /** + * Creates an instance of external child resource in-memory. + * + * @param resourceGroupName the resource group name + * @param sqlServerName the parent SQL server name + * @param name the name of this external child resource + * @param innerObject reference to the inner object representing this external child resource + * @param sqlServerManager reference to the SQL server manager that accesses virtual network rule operations + */ + SqlVirtualNetworkRuleImpl(String resourceGroupName, String sqlServerName, String name, VirtualNetworkRuleInner innerObject, SqlServerManager sqlServerManager) { + super(name, null, innerObject); + Objects.requireNonNull(sqlServerManager); + this.sqlServerManager = sqlServerManager; + this.resourceGroupName = resourceGroupName; + this.sqlServerName = sqlServerName; + } + + /** + * Creates an instance of external child resource in-memory. + * + * @param name the name of this external child resource + * @param innerObject reference to the inner object representing this external child resource + * @param sqlServerManager reference to the SQL server manager that accesses virtual network rule operations + */ + SqlVirtualNetworkRuleImpl(String name, VirtualNetworkRuleInner innerObject, SqlServerManager sqlServerManager) { + super(name, null, innerObject); + Objects.requireNonNull(sqlServerManager); + this.sqlServerManager = sqlServerManager; + } + + @Override + public Observable createResourceAsync() { + final SqlVirtualNetworkRuleImpl self = this; + return this.sqlServerManager.inner().virtualNetworkRules() + .createOrUpdateAsync(this.resourceGroupName, this.sqlServerName, this.name(), this.inner()) + .map(new Func1() { + @Override + public SqlVirtualNetworkRule call(VirtualNetworkRuleInner inner) { + self.setInner(inner); + return self; + } + }); + } + + @Override + public Observable updateResourceAsync() { + return this.createResourceAsync(); + } + + @Override + public Observable deleteResourceAsync() { + return this.sqlServerManager.inner().virtualNetworkRules().deleteAsync(this.resourceGroupName, this.sqlServerName, this.name()); + } + + @Override + protected Observable getInnerAsync() { + return this.sqlServerManager.inner().virtualNetworkRules().getAsync(this.resourceGroupName, this.sqlServerName, this.name()); + } + + @Override + public SqlVirtualNetworkRuleImpl update() { + super.prepareUpdate(); + + return this; + } + + @Override + public String id() { + return this.inner().id(); + } + + @Override + public String resourceGroupName() { + return this.resourceGroupName; + } + + @Override + public String sqlServerName() { + return this.sqlServerName; + } + + @Override + public String subnetId() { + return this.inner().virtualNetworkSubnetId(); + } + + @Override + public String state() { + return this.inner().state().toString(); + } + + @Override + public String parentId() { + return ResourceUtils.parentResourceIdFromResourceId(this.id()); + } + + @Override + public void delete() { + this.deleteResourceAsync().toBlocking().last(); + } + + @Override + public Completable deleteAsync() { + return this.deleteResourceAsync().toCompletable(); + } + + @Override + public SqlVirtualNetworkRuleImpl withExistingSqlServer(String resourceGroupName, String sqlServerName) { + this.resourceGroupName = resourceGroupName; + this.sqlServerName = sqlServerName; + return this; + } + + @Override + public SqlVirtualNetworkRuleImpl withExistingSqlServerId(String sqlServerId) { + Objects.requireNonNull(sqlServerId); + ResourceId resourceId = ResourceId.fromString(sqlServerId); + this.resourceGroupName = resourceId.resourceGroupName(); + this.sqlServerName = resourceId.name(); + return this; + } + + @Override + public SqlVirtualNetworkRuleImpl withExistingSqlServer(SqlServer sqlServer) { + this.resourceGroupName = sqlServer.resourceGroupName(); + this.sqlServerName = sqlServer.name(); + return this; + } + + @Override + public SqlVirtualNetworkRuleImpl withSubnet(String networkId, String subnetName) { + this.inner().withVirtualNetworkSubnetId(networkId + "/subnets/" + subnetName); + this.inner().withIgnoreMissingVnetServiceEndpoint(false); + return this; + } + + @Override + public SqlVirtualNetworkRuleImpl ignoreMissingSqlServiceEndpoint() { + this.inner().withIgnoreMissingVnetServiceEndpoint(true); + return this; + } + + @Override + public SqlServer.DefinitionStages.WithCreate attach() { + return parent(); + } +} diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRuleOperationsImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRuleOperationsImpl.java new file mode 100644 index 00000000000..6745e47d9ff --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRuleOperationsImpl.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql.implementation; + +import com.microsoft.azure.Page; +import com.microsoft.azure.management.apigeneration.LangDefinition; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRule; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRuleOperations; +import com.microsoft.azure.management.sql.SqlServer; +import rx.Completable; +import rx.Observable; +import rx.functions.Func1; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; + +/** + * Implementation for SQL Virtual Network Rule operations. + */ +@LangDefinition +public class SqlVirtualNetworkRuleOperationsImpl + extends + SqlChildrenOperationsImpl + implements + SqlVirtualNetworkRuleOperations, + SqlVirtualNetworkRuleOperations.SqlVirtualNetworkRuleActionsDefinition { + + private SqlVirtualNetworkRulesAsExternalChildResourcesImpl sqlVirtualNetworkRules; + + SqlVirtualNetworkRuleOperationsImpl(SqlServer parent, SqlServerManager sqlServerManager) { + super(parent, sqlServerManager); + Objects.requireNonNull(parent); + this.sqlVirtualNetworkRules = new SqlVirtualNetworkRulesAsExternalChildResourcesImpl(sqlServerManager, "SqlVirtualNetworkRule"); + } + + SqlVirtualNetworkRuleOperationsImpl(SqlServerManager sqlServerManager) { + super(null, sqlServerManager); + this.sqlVirtualNetworkRules = new SqlVirtualNetworkRulesAsExternalChildResourcesImpl(sqlServerManager, "SqlVirtualNetworkRule"); + } + + @Override + public SqlVirtualNetworkRule getBySqlServer(String resourceGroupName, String sqlServerName, String name) { + VirtualNetworkRuleInner inner = this.sqlServerManager.inner().virtualNetworkRules() + .get(resourceGroupName, sqlServerName, name); + return (inner != null) ? new SqlVirtualNetworkRuleImpl(resourceGroupName, sqlServerName, inner.name(), inner, sqlServerManager) : null; + } + + @Override + public Observable getBySqlServerAsync(final String resourceGroupName, final String sqlServerName, final String name) { + return this.sqlServerManager.inner().virtualNetworkRules() + .getAsync(resourceGroupName, sqlServerName, name) + .map(new Func1() { + @Override + public SqlVirtualNetworkRule call(VirtualNetworkRuleInner inner) { + return new SqlVirtualNetworkRuleImpl(resourceGroupName, sqlServerName, inner.name(), inner, sqlServerManager); + } + }); + } + + @Override + public SqlVirtualNetworkRule getBySqlServer(SqlServer sqlServer, String name) { + if (sqlServer == null) { + return null; + } + VirtualNetworkRuleInner inner = this.sqlServerManager.inner().virtualNetworkRules() + .get(sqlServer.resourceGroupName(), sqlServer.name(), name); + return (inner != null) ? new SqlVirtualNetworkRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, sqlServerManager) : null; + } + + @Override + public Observable getBySqlServerAsync(final SqlServer sqlServer, final String name) { + Objects.requireNonNull(sqlServer); + return sqlServer.manager().inner().virtualNetworkRules() + .getAsync(sqlServer.resourceGroupName(), sqlServer.name(), name) + .map(new Func1() { + @Override + public SqlVirtualNetworkRule call(VirtualNetworkRuleInner inner) { + return new SqlVirtualNetworkRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, sqlServer.manager()); + } + }); + } + + @Override + public void deleteBySqlServer(String resourceGroupName, String sqlServerName, String name) { + this.sqlServerManager.inner().virtualNetworkRules().delete(resourceGroupName, sqlServerName, name); + } + + @Override + public Completable deleteBySqlServerAsync(String resourceGroupName, String sqlServerName, String name) { + return this.sqlServerManager.inner().virtualNetworkRules().deleteAsync(resourceGroupName, sqlServerName, name).toCompletable(); + } + + @Override + public List listBySqlServer(String resourceGroupName, String sqlServerName) { + List virtualNetworkRuleSet = new ArrayList<>(); + for (VirtualNetworkRuleInner inner : this.sqlServerManager.inner().virtualNetworkRules().listByServer(resourceGroupName, sqlServerName)) { + virtualNetworkRuleSet.add(new SqlVirtualNetworkRuleImpl(resourceGroupName, sqlServerName, inner.name(), inner, this.sqlServerManager)); + } + return Collections.unmodifiableList(virtualNetworkRuleSet); + } + + @Override + public Observable listBySqlServerAsync(final String resourceGroupName, final String sqlServerName) { + return this.sqlServerManager.inner().virtualNetworkRules().listByServerAsync(resourceGroupName, sqlServerName) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(Page virtualNetworkRuleInnerPage) { + return Observable.from(virtualNetworkRuleInnerPage.items()); + } + }) + .map(new Func1() { + @Override + public SqlVirtualNetworkRule call(VirtualNetworkRuleInner inner) { + return new SqlVirtualNetworkRuleImpl(resourceGroupName, sqlServerName, inner.name(), inner, sqlServerManager); + } + }); + } + + @Override + public List listBySqlServer(SqlServer sqlServer) { + List virtualNetworkRuleSet = new ArrayList<>(); + if (sqlServer != null) { + for (VirtualNetworkRuleInner inner : this.sqlServerManager.inner().virtualNetworkRules().listByServer(sqlServer.resourceGroupName(), sqlServer.name())) { + virtualNetworkRuleSet.add(new SqlVirtualNetworkRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, this.sqlServerManager)); + } + } + return Collections.unmodifiableList(virtualNetworkRuleSet); + } + + @Override + public Observable listBySqlServerAsync(final SqlServer sqlServer) { + Objects.requireNonNull(sqlServer); + return sqlServer.manager().inner().virtualNetworkRules() + .listByServerAsync(sqlServer.resourceGroupName(), sqlServer.name()) + .flatMap(new Func1, Observable>() { + @Override + public Observable call(Page virtualNetworkRuleInnerPage) { + return Observable.from(virtualNetworkRuleInnerPage.items()); + } + }) + .map(new Func1() { + @Override + public SqlVirtualNetworkRule call(VirtualNetworkRuleInner inner) { + return new SqlVirtualNetworkRuleImpl(inner.name(), (SqlServerImpl) sqlServer, inner, sqlServerManager); + } + }); + } + + @Override + public SqlVirtualNetworkRuleImpl define(String name) { + SqlVirtualNetworkRuleImpl result = sqlVirtualNetworkRules.defineIndependentVirtualNetworkRule(name); + return (this.sqlServer != null) ? result.withExistingSqlServer(this.sqlServer) : result; + } +} diff --git a/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRulesAsExternalChildResourcesImpl.java b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRulesAsExternalChildResourcesImpl.java new file mode 100644 index 00000000000..f12511ded7c --- /dev/null +++ b/azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/implementation/SqlVirtualNetworkRulesAsExternalChildResourcesImpl.java @@ -0,0 +1,80 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql.implementation; + +import com.microsoft.azure.management.apigeneration.LangDefinition; +import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesNonCachedImpl; +import com.microsoft.azure.management.sql.SqlServer; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRule; + +/** + * Represents a SQL Virtual Network Rules collection associated with an Azure SQL server. + */ +@LangDefinition +public class SqlVirtualNetworkRulesAsExternalChildResourcesImpl + extends + ExternalChildResourcesNonCachedImpl { + + SqlServerManager sqlServerManager; + + /** + * Creates a new ExternalNonInlineChildResourcesImpl. + * + * @param parent the parent Azure resource + * @param childResourceName the child resource name + */ + protected SqlVirtualNetworkRulesAsExternalChildResourcesImpl(SqlServerImpl parent, String childResourceName) { + super(parent, parent.taskGroup(), childResourceName); + this.sqlServerManager = parent.manager(); + } + + /** + * Creates a new ExternalChildResourcesNonCachedImpl. + * + * @param sqlServerManager the manager + * @param childResourceName the child resource name (for logging) + */ + protected SqlVirtualNetworkRulesAsExternalChildResourcesImpl(SqlServerManager sqlServerManager, String childResourceName) { + super(null, null, childResourceName); + this.sqlServerManager = sqlServerManager; + } + + SqlVirtualNetworkRuleImpl defineIndependentVirtualNetworkRule(String name) { + // resource group and server name will be set by the next method in the Fluent flow + return prepareIndependentDefine(new SqlVirtualNetworkRuleImpl(name, new VirtualNetworkRuleInner(), this.sqlServerManager)); + } + + SqlVirtualNetworkRuleImpl defineInlineVirtualNetworkRule(String name) { + if (this.parent() == null) { + // resource group and server name will be set by the next method in the Fluent flow + return prepareInlineDefine(new SqlVirtualNetworkRuleImpl(name, new VirtualNetworkRuleInner(), this.sqlServerManager)); + } else { + return prepareInlineDefine(new SqlVirtualNetworkRuleImpl(name, this.parent(), new VirtualNetworkRuleInner(), this.parent().manager())); + } + } + + SqlVirtualNetworkRuleImpl updateInlineVirtualNetworkRule(String name) { + if (this.parent() == null) { + // resource group and server name will be set by the next method in the Fluent flow + return prepareInlineUpdate(new SqlVirtualNetworkRuleImpl(name, new VirtualNetworkRuleInner(), this.sqlServerManager)); + } else { + return prepareInlineUpdate(new SqlVirtualNetworkRuleImpl(name, this.parent(), new VirtualNetworkRuleInner(), this.parent().manager())); + } + } + + void removeInlineVirtualNetworkRule(String name) { + if (this.parent() == null) { + // resource group and server name will be set by the next method in the Fluent flow + prepareInlineRemove(new SqlVirtualNetworkRuleImpl(name, new VirtualNetworkRuleInner(), this.sqlServerManager)); + } else { + prepareInlineRemove(new SqlVirtualNetworkRuleImpl(name, this.parent(), new VirtualNetworkRuleInner(), this.parent().manager())); + } + } +} diff --git a/azure-mgmt-sql/src/test/java/com/microsoft/azure/management/sql/SqlServerOperationsTests.java b/azure-mgmt-sql/src/test/java/com/microsoft/azure/management/sql/SqlServerOperationsTests.java index 964f71c6734..5ae0e6b0f33 100644 --- a/azure-mgmt-sql/src/test/java/com/microsoft/azure/management/sql/SqlServerOperationsTests.java +++ b/azure-mgmt-sql/src/test/java/com/microsoft/azure/management/sql/SqlServerOperationsTests.java @@ -35,7 +35,7 @@ public class SqlServerOperationsTests extends SqlServerTest { @Test - public void canChangeSqlServerAndDatabaseAutomaticTuning () throws Exception { + public void canChangeSqlServerAndDatabaseAutomaticTuning() throws Exception { String rgName = RG_NAME; String sqlServerName = SQL_SERVER_NAME; String sqlServerAdminName = "sqladmin"; @@ -47,16 +47,16 @@ public void canChangeSqlServerAndDatabaseAutomaticTuning () throws Exception { // Create SqlServer sqlServer = sqlServerManager .sqlServers() - .define(sqlServerName) - .withRegion(Region.US_EAST) - .withNewResourceGroup(rgName) - .withAdministratorLogin(sqlServerAdminName) - .withAdministratorPassword(sqlServerAdminPassword) - .defineDatabase(databaseName) - .fromSample(SampleName.ADVENTURE_WORKS_LT) - .withBasicEdition() - .attach() - .create(); + .define(sqlServerName) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .withAdministratorLogin(sqlServerAdminName) + .withAdministratorPassword(sqlServerAdminPassword) + .defineDatabase(databaseName) + .fromSample(SampleName.ADVENTURE_WORKS_LT) + .withBasicEdition() + .attach() + .create(); SqlDatabase dbFromSample = sqlServer.databases().get(databaseName); Assert.assertNotNull(dbFromSample); Assert.assertEquals(DatabaseEditions.BASIC, dbFromSample.edition()); @@ -103,6 +103,66 @@ public void canChangeSqlServerAndDatabaseAutomaticTuning () throws Exception { sqlServerManager.sqlServers().deleteByResourceGroup(rgName, sqlServerName); } + @Test + public void canCreateAndAquireServerDnsAlias () throws Exception { + String rgName = RG_NAME; + String sqlServerName1 = SQL_SERVER_NAME + "1"; + String sqlServerName2 = SQL_SERVER_NAME + "2"; + String sqlServerAdminName = "sqladmin"; + String sqlServerAdminPassword = "N0t@P@ssw0rd!"; + + // Create + SqlServer sqlServer1 = sqlServerManager + .sqlServers() + .define(sqlServerName1) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .withAdministratorLogin(sqlServerAdminName) + .withAdministratorPassword(sqlServerAdminPassword) + .create(); + Assert.assertNotNull(sqlServer1); + + SqlServerDnsAlias dnsAlias = sqlServer1.dnsAliases() + .define(SQL_SERVER_NAME) + .create(); + + Assert.assertNotNull(dnsAlias); + Assert.assertEquals(rgName, dnsAlias.resourceGroupName()); + Assert.assertEquals(sqlServerName1, dnsAlias.sqlServerName()); + + dnsAlias = sqlServerManager.sqlServers().dnsAliases() + .getBySqlServer(rgName, sqlServerName1, SQL_SERVER_NAME); + Assert.assertNotNull(dnsAlias); + Assert.assertEquals(rgName, dnsAlias.resourceGroupName()); + Assert.assertEquals(sqlServerName1, dnsAlias.sqlServerName()); + + Assert.assertEquals(1, sqlServer1.databases().list().size()); + + SqlServer sqlServer2 = sqlServerManager + .sqlServers() + .define(sqlServerName2) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .withAdministratorLogin(sqlServerAdminName) + .withAdministratorPassword(sqlServerAdminPassword) + .create(); + Assert.assertNotNull(sqlServer2); + + sqlServer2.dnsAliases().acquire(SQL_SERVER_NAME, sqlServer1.id()); + SdkContext.sleep(3 * 60 * 1000); + + dnsAlias = sqlServer2.dnsAliases().get(SQL_SERVER_NAME); + Assert.assertNotNull(dnsAlias); + Assert.assertEquals(rgName, dnsAlias.resourceGroupName()); + Assert.assertEquals(sqlServerName2, dnsAlias.sqlServerName()); + + // cleanup + dnsAlias.delete(); + + sqlServerManager.sqlServers().deleteByResourceGroup(rgName, sqlServerName1); + sqlServerManager.sqlServers().deleteByResourceGroup(rgName, sqlServerName2); + } + @Test public void canGetSqlServerCapabilitiesAndCreateIdentity () throws Exception { String rgName = RG_NAME; @@ -110,8 +170,6 @@ public void canGetSqlServerCapabilitiesAndCreateIdentity () throws Exception { String sqlServerAdminName = "sqladmin"; String sqlServerAdminPassword = "N0t@P@ssw0rd!"; String databaseName = "db-from-sample"; - String id = SdkContext.randomUuid(); - String storageName = SdkContext.randomResourceName(SQL_SERVER_NAME, 22); RegionCapabilities regionCapabilities = sqlServerManager.sqlServers().getCapabilitiesByRegion(Region.US_EAST); Assert.assertNotNull(regionCapabilities); diff --git a/azure-mgmt-sql/src/test/resources/session-records/canCreateAndAquireServerDnsAlias.json b/azure-mgmt-sql/src/test/resources/session-records/canCreateAndAquireServerDnsAlias.json new file mode 100644 index 00000000000..c658fc94827 --- /dev/null +++ b/azure-mgmt-sql/src/test/resources/session-records/canCreateAndAquireServerDnsAlias.json @@ -0,0 +1,2269 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgsql42a2891070c?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:25:34 GMT", + "content-length" : "185", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "4724f99d-f5a2-475b-9ded-ed791a7dbedb", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032535Z:4724f99d-f5a2-475b-9ded-ed791a7dbedb", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "4724f99d-f5a2-475b-9ded-ed791a7dbedb", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c\",\"name\":\"rgsql42a2891070c\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:25:36 GMT", + "content-length" : "74", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "dd081540-d67e-4680-b69c-1e21fa7bd445", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032537Z:dd081540-d67e-4680-b69c-1e21fa7bd445", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverOperationResults/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "895afea4-4a11-418f-ad67-c3ffa5ce7091", + "Body" : "{\"operation\":\"UpsertLogicalServer\",\"startTime\":\"2018-03-12T03:25:37.677Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:25:36 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14998", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "74dd3b4c-0b0a-4f1b-8acd-cfd9ace8b669", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032537Z:74dd3b4c-0b0a-4f1b-8acd-cfd9ace8b669", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "79f2653f-f1c3-4e41-940c-cb54d2e2014a", + "Body" : "{\"name\":\"895afea4-4a11-418f-ad67-c3ffa5ce7091\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:25:37.677Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:25:39 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14997", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "e5a2e476-c1ee-4072-8339-3fa998ba2e93", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032539Z:e5a2e476-c1ee-4072-8339-3fa998ba2e93", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "1b72730e-733c-4dd3-8c10-0146bb5f2854", + "Body" : "{\"name\":\"895afea4-4a11-418f-ad67-c3ffa5ce7091\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:25:37.677Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:25:40 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14996", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "77247315-a2ca-4a8a-b79f-5572a638ab4e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032540Z:77247315-a2ca-4a8a-b79f-5572a638ab4e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "c13e1aeb-bd93-4ee8-a0d9-be7e8100f032", + "Body" : "{\"name\":\"895afea4-4a11-418f-ad67-c3ffa5ce7091\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:25:37.677Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:25:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14995", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "a0ad788a-db6d-4e55-a9d6-463538a748fc", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032541Z:a0ad788a-db6d-4e55-a9d6-463538a748fc", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "ba320d99-b441-4bfc-9dc5-5909f0760cc9", + "Body" : "{\"name\":\"895afea4-4a11-418f-ad67-c3ffa5ce7091\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:25:37.677Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:25:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14994", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "e7bb4320-e724-489e-a4d8-07a1605d2fc4", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032542Z:e7bb4320-e724-489e-a4d8-07a1605d2fc4", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "7c4d21f9-3c74-411f-a41f-9115aef26b2b", + "Body" : "{\"name\":\"895afea4-4a11-418f-ad67-c3ffa5ce7091\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:25:37.677Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:02 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14993", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "76c7c918-a949-4101-ad24-817b0a073c8d", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032602Z:76c7c918-a949-4101-ad24-817b0a073c8d", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "e115c683-8aeb-4af9-87fc-7bbf9c321a63", + "Body" : "{\"name\":\"895afea4-4a11-418f-ad67-c3ffa5ce7091\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:25:37.677Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/895afea4-4a11-418f-ad67-c3ffa5ce7091?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:22 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14992", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "1d1b2eaf-35d8-462d-bccf-81abb6a75c30", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032622Z:1d1b2eaf-35d8-462d-bccf-81abb6a75c30", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b708a885-9744-4b4c-ade7-e4a264793780", + "Body" : "{\"name\":\"895afea4-4a11-418f-ad67-c3ffa5ce7091\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-12T03:25:37.677Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:22 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "402", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14991", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c045acbb-fd4c-4be6-a433-ea3907d17690", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032623Z:c045acbb-fd4c-4be6-a433-ea3907d17690", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "bc2d3ac9-9771-4ea8-b7fd-71d1ec42b48f", + "Body" : "{\"kind\":\"v12.0\",\"properties\":{\"administratorLogin\":\"sqladmin\",\"version\":\"12.0\",\"state\":\"Ready\",\"fullyQualifiedDomainName\":\"javasqlserver4322001.database.windows.net\"},\"location\":\"eastus\",\"tags\":{},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001\",\"name\":\"javasqlserver4322001\",\"type\":\"Microsoft.Sql/servers\"}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/firewallRules/AllowAllWindowsAzureIps?api-version=2014-04-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:23 GMT", + "content-length" : "364", + "server" : "Microsoft-HTTPAPI/2.0", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "10a03923-73d2-48a8-9d71-3b9a9dc184f5", + "preference-applied" : "return-content", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032624Z:10a03923-73d2-48a8-9d71-3b9a9dc184f5", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-store, no-cache", + "dataserviceversion" : "3.0;", + "x-ms-request-id" : "3f06cbee-7bde-4720-aa95-dee92521a86a", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/firewallRules/AllowAllWindowsAzureIps\",\"name\":\"AllowAllWindowsAzureIps\",\"type\":\"Microsoft.Sql/servers/firewallRules\",\"location\":\"East US\",\"kind\":\"v12.0\",\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.0\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/dnsAliases/javasqlserver432200?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:25 GMT", + "content-length" : "74", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b9c0ad6a-369e-47af-84f4-6b3f4602778d", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032626Z:b9c0ad6a-369e-47af-84f4-6b3f4602778d", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasOperationResults/f017fb60-34d6-4f9f-8076-e36397dbd614?api-version=2017-03-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "a8b39c42-7b3e-480f-9342-8e9321b89803", + "Body" : "{\"operation\":\"CreateServerDnsAlias\",\"startTime\":\"2018-03-12T03:26:25.71Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/f017fb60-34d6-4f9f-8076-e36397dbd614?api-version=2017-03-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/f017fb60-34d6-4f9f-8076-e36397dbd614?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:25 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14990", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "55c56453-559a-41d3-9c78-c62e65a79311", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032626Z:55c56453-559a-41d3-9c78-c62e65a79311", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "984ce589-9adb-4664-aba0-ed371de1dff7", + "Body" : "{\"name\":\"f017fb60-34d6-4f9f-8076-e36397dbd614\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:26:25.71Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/f017fb60-34d6-4f9f-8076-e36397dbd614?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14989", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ffc439f0-69d9-4542-8f68-c1d8f4ba4a8b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032627Z:ffc439f0-69d9-4542-8f68-c1d8f4ba4a8b", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "af35ab19-5a78-44b6-881a-2a7bef6db6ce", + "Body" : "{\"name\":\"f017fb60-34d6-4f9f-8076-e36397dbd614\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-12T03:26:25.71Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/dnsAliases/javasqlserver432200?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "322", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14988", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "97606519-d4a6-44b5-b06a-47f1718660cb", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032628Z:97606519-d4a6-44b5-b06a-47f1718660cb", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "5985df11-6b33-43d3-a6b9-7452ca845ec1", + "Body" : "{\"properties\":{\"azureDnsRecord\":\"javasqlserver432200.database.windows.net\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/dnsAliases/javasqlserver432200\",\"name\":\"javasqlserver432200\",\"type\":\"Microsoft.Sql/servers/dnsAliases\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/dnsAliases/javasqlserver432200?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "322", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14987", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ff8aac93-2073-4235-9547-59f6eeabfcd0", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032628Z:ff8aac93-2073-4235-9547-59f6eeabfcd0", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "a01d6a31-3c31-40c1-9536-c467b97e4b03", + "Body" : "{\"properties\":{\"azureDnsRecord\":\"javasqlserver432200.database.windows.net\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/dnsAliases/javasqlserver432200\",\"name\":\"javasqlserver432200\",\"type\":\"Microsoft.Sql/servers/dnsAliases\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/databases?api-version=2014-04-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1076", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14986", + "StatusCode" : "200", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "3a752c7a-5b10-4f92-ae3b-7be3d4df75d0", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032628Z:3a752c7a-5b10-4f92-ae3b-7be3d4df75d0", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-store, no-cache", + "dataserviceversion" : "3.0;", + "x-ms-request-id" : "e94bf090-afb2-4477-b1db-739118690db3", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001/databases/master\",\"name\":\"master\",\"type\":\"Microsoft.Sql/servers/databases\",\"location\":\"East US\",\"kind\":\"v12.0,system\",\"managedBy\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001\",\"properties\":{\"databaseId\":\"2e0713c6-012c-48b1-96d9-19f94fcc5ddd\",\"edition\":\"System\",\"status\":\"Online\",\"serviceLevelObjective\":\"System2\",\"collation\":\"SQL_Latin1_General_CP1_CI_AS\",\"maxSizeBytes\":\"32212254720\",\"creationDate\":\"2018-03-12T03:25:39.973Z\",\"currentServiceObjectiveId\":\"620323bf-2879-4807-b30d-c2e6d7b3b3aa\",\"requestedServiceObjectiveId\":\"620323bf-2879-4807-b30d-c2e6d7b3b3aa\",\"requestedServiceObjectiveName\":\"System2\",\"sampleName\":null,\"defaultSecondaryLocation\":\"West US\",\"earliestRestoreDate\":null,\"elasticPoolName\":null,\"containmentState\":2,\"readScale\":\"Disabled\",\"failoverGroupId\":null,\"zoneRedundant\":false,\"isUpgradeRequested\":false}}]}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgsql42a2891070c?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:29 GMT", + "content-length" : "185", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "8bbf8c89-74c9-4329-9da0-6f6b8d9d6ee1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032629Z:8bbf8c89-74c9-4329-9da0-6f6b8d9d6ee1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8bbf8c89-74c9-4329-9da0-6f6b8d9d6ee1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c\",\"name\":\"rgsql42a2891070c\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:30 GMT", + "content-length" : "73", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "bd82ef76-3920-45a6-bd65-6b14433be80a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032631Z:bd82ef76-3920-45a6-bd65-6b14433be80a", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverOperationResults/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "91f1fc5e-7f77-4d42-a33f-a8c8546ead96", + "Body" : "{\"operation\":\"UpsertLogicalServer\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:30 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14985", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "3a396ce3-1100-440f-940b-958cce90fc26", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032631Z:3a396ce3-1100-440f-940b-958cce90fc26", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f1345481-4dcf-436f-87f5-586d68dcdc57", + "Body" : "{\"name\":\"91f1fc5e-7f77-4d42-a33f-a8c8546ead96\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:31 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14984", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "cd620773-c41d-4d1d-9a9b-c262f0aaa5d0", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032632Z:cd620773-c41d-4d1d-9a9b-c262f0aaa5d0", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "09a749f3-62a1-48fd-ba94-7b8c5bb47af9", + "Body" : "{\"name\":\"91f1fc5e-7f77-4d42-a33f-a8c8546ead96\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:32 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14983", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "d4f7d3cc-4e99-48b7-9383-ad3392c2b103", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032633Z:d4f7d3cc-4e99-48b7-9383-ad3392c2b103", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "68e486ce-3fdf-4cc9-8245-600e26cfb092", + "Body" : "{\"name\":\"91f1fc5e-7f77-4d42-a33f-a8c8546ead96\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:34 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14982", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "8eb88332-eaad-45e0-9585-f01466b08ecf", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032634Z:8eb88332-eaad-45e0-9585-f01466b08ecf", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "6e7b8d2d-3264-4712-ba9e-cbd8491bd339", + "Body" : "{\"name\":\"91f1fc5e-7f77-4d42-a33f-a8c8546ead96\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:36 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14981", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "75046637-e836-4ce8-a2d9-e690ac0bd015", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032636Z:75046637-e836-4ce8-a2d9-e690ac0bd015", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "28af3715-1e4a-464a-9809-3469be9e6211", + "Body" : "{\"name\":\"91f1fc5e-7f77-4d42-a33f-a8c8546ead96\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:26:55 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14980", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "6081ec52-82de-451c-9a33-96d55a09faf1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032656Z:6081ec52-82de-451c-9a33-96d55a09faf1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8166bea5-5a6a-4c98-9a75-ea51eb111f83", + "Body" : "{\"name\":\"91f1fc5e-7f77-4d42-a33f-a8c8546ead96\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:27:16 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14979", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "bb08fa70-ad5d-47e9-81e0-c0068c62c2e9", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032716Z:bb08fa70-ad5d-47e9-81e0-c0068c62c2e9", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b00586ff-1a63-45ed-8324-9e93c802ae97", + "Body" : "{\"name\":\"91f1fc5e-7f77-4d42-a33f-a8c8546ead96\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/91f1fc5e-7f77-4d42-a33f-a8c8546ead96?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:27:36 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14978", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ebe9f6ac-6fd3-4062-a478-e66b1d89c051", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032736Z:ebe9f6ac-6fd3-4062-a478-e66b1d89c051", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "0a6f2d4d-786f-45c1-a34b-5d6fef80837b", + "Body" : "{\"name\":\"91f1fc5e-7f77-4d42-a33f-a8c8546ead96\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-12T03:26:31.52Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:27:36 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "402", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14977", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "49b2952d-08b8-4d79-9c2f-7fffec4383c7", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032736Z:49b2952d-08b8-4d79-9c2f-7fffec4383c7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "773585e0-779f-4a22-aa15-11a825813c9f", + "Body" : "{\"kind\":\"v12.0\",\"properties\":{\"administratorLogin\":\"sqladmin\",\"version\":\"12.0\",\"state\":\"Ready\",\"fullyQualifiedDomainName\":\"javasqlserver4322002.database.windows.net\"},\"location\":\"eastus\",\"tags\":{},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002\",\"name\":\"javasqlserver4322002\",\"type\":\"Microsoft.Sql/servers\"}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002/firewallRules/AllowAllWindowsAzureIps?api-version=2014-04-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:27:37 GMT", + "content-length" : "364", + "server" : "Microsoft-HTTPAPI/2.0", + "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "retry-after" : "0", + "StatusCode" : "201", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "96c9949e-ceed-4954-b79e-c777dae07d18", + "preference-applied" : "return-content", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032738Z:96c9949e-ceed-4954-b79e-c777dae07d18", + "content-type" : "application/json; odata=minimalmetadata; streaming=true; charset=utf-8", + "cache-control" : "no-store, no-cache", + "dataserviceversion" : "3.0;", + "x-ms-request-id" : "04e351a1-d822-4a6a-94f6-aed2f5ba5abe", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002/firewallRules/AllowAllWindowsAzureIps\",\"name\":\"AllowAllWindowsAzureIps\",\"type\":\"Microsoft.Sql/servers/firewallRules\",\"location\":\"East US\",\"kind\":\"v12.0\",\"properties\":{\"startIpAddress\":\"0.0.0.0\",\"endIpAddress\":\"0.0.0.0\"}}" + } + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002/dnsAliases/javasqlserver432200/acquire?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:27:39 GMT", + "content-length" : "74", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1192", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "2c256298-7628-411b-893b-a41991df0fae", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032740Z:2c256298-7628-411b-893b-a41991df0fae", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasOperationResults/ea899582-1387-4d43-870c-eb800a55700e?api-version=2017-03-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "2e7f42f7-59ee-4f56-b8a2-e938fcba4ea8", + "Body" : "{\"operation\":\"CreateServerDnsAlias\",\"startTime\":\"2018-03-12T03:27:39.57Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/ea899582-1387-4d43-870c-eb800a55700e?api-version=2017-03-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/ea899582-1387-4d43-870c-eb800a55700e?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:27:40 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14976", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "186c4139-48c4-46ad-90e6-4816b9400f06", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032740Z:186c4139-48c4-46ad-90e6-4816b9400f06", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8240d5a7-0931-418e-820e-879674afd823", + "Body" : "{\"name\":\"ea899582-1387-4d43-870c-eb800a55700e\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:27:39.57Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/ea899582-1387-4d43-870c-eb800a55700e?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:27:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14975", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "5754fff6-cf54-4010-89a7-6ad999220a6c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032741Z:5754fff6-cf54-4010-89a7-6ad999220a6c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "0d792681-6571-467a-9c8b-32b06f97c39a", + "Body" : "{\"name\":\"ea899582-1387-4d43-870c-eb800a55700e\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:27:39.57Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/ea899582-1387-4d43-870c-eb800a55700e?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:27:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14974", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "3e3fb32a-b5a1-46f7-b2cc-ed3fc5284cf1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T032743Z:3e3fb32a-b5a1-46f7-b2cc-ed3fc5284cf1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "12fa2bbf-5c17-41a9-998f-f88bc86697ad", + "Body" : "{\"name\":\"ea899582-1387-4d43-870c-eb800a55700e\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-12T03:27:39.57Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002/dnsAliases/javasqlserver432200?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:30:44 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "322", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14998", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "7207c92c-72bc-46c4-825c-86c58bdfcc52", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033045Z:7207c92c-72bc-46c4-825c-86c58bdfcc52", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "59c935d3-ddce-4dca-a00d-ea1ec985f107", + "Body" : "{\"properties\":{\"azureDnsRecord\":\"javasqlserver432200.database.windows.net\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002/dnsAliases/javasqlserver432200\",\"name\":\"javasqlserver432200\",\"type\":\"Microsoft.Sql/servers/dnsAliases\"}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002/dnsAliases/javasqlserver432200?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:30:46 GMT", + "content-length" : "73", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "6be39f12-3888-42fc-a326-28c3fc4d167a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033047Z:6be39f12-3888-42fc-a326-28c3fc4d167a", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasOperationResults/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "6a4cbd1d-b42d-4315-a4c7-0cb63f446e8e", + "Body" : "{\"operation\":\"DropServerDnsAlias\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:30:47 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14997", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "10889932-0c10-49cf-910e-9b393404a536", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033047Z:10889932-0c10-49cf-910e-9b393404a536", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b1f5476a-dbde-44a3-8771-e683469dde3c", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:30:48 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14996", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "fbace6ba-493f-4f5f-94b6-c04b6fd7b289", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033049Z:fbace6ba-493f-4f5f-94b6-c04b6fd7b289", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "2be904b4-8ceb-4c9d-9bcc-a9337d22eda3", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:30:50 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14995", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "25dfa74a-9bd3-4de9-b03c-701a2fccdd00", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033050Z:25dfa74a-9bd3-4de9-b03c-701a2fccdd00", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "60f30cae-16fe-4691-879a-cf984477b0ef", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:30:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14994", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "263ec00b-a277-4d5e-82c4-436f3daaceaa", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033051Z:263ec00b-a277-4d5e-82c4-436f3daaceaa", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "71e2bd5a-4644-4496-bbf6-6c6e97e0ad58", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:31:11 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14993", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "feb954ad-61ed-4d70-84e9-0dc2ca2e6198", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033111Z:feb954ad-61ed-4d70-84e9-0dc2ca2e6198", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "65dfcbb2-5610-41b7-b906-86f5ebb30f60", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:31:31 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14992", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "4ae2ae3d-2b4c-4f01-bbb3-2b6e64b276f8", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033132Z:4ae2ae3d-2b4c-4f01-bbb3-2b6e64b276f8", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d7a0f995-85c3-466e-b350-db2c777de58e", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:31:51 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14991", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "a75d0313-4afb-4194-a0e3-0116b114ccdf", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033152Z:a75d0313-4afb-4194-a0e3-0116b114ccdf", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "31bb983a-3b44-4901-90c2-a0f7120eb7ac", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:32:07 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14990", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "48f6bff8-7c43-40e8-aa9f-9afdc9ff7d99", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033207Z:48f6bff8-7c43-40e8-aa9f-9afdc9ff7d99", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "be3460da-de49-4b82-a35d-e4c2e2163635", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:32:22 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14989", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "6ca224f1-6691-4dab-814f-470c2655de89", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033223Z:6ca224f1-6691-4dab-814f-470c2655de89", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "9df5ee2a-3cb4-46fe-8b2b-6811c60d70c1", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:32:37 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14988", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "73876ece-401f-4e1e-abc6-4e644417338b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033238Z:73876ece-401f-4e1e-abc6-4e644417338b", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "bffb4f50-8566-4837-9370-8e03dd88b978", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:32:53 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14987", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "52946983-bbd7-4771-8766-93ad64993500", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033253Z:52946983-bbd7-4771-8766-93ad64993500", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "da0da0b3-a553-4fd6-977e-8918ccad725a", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:33:07 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14986", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "7a36931c-6427-4995-8327-96b2bd9bebc4", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033308Z:7a36931c-6427-4995-8327-96b2bd9bebc4", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d4abb297-8208-4764-a17a-3d815c0a6307", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:33:23 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14985", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "616a793d-ffe0-4f2d-a4f6-d4178e81a87c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033323Z:616a793d-ffe0-4f2d-a4f6-d4178e81a87c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "3f875951-1a01-40c3-a8ba-c8f7ba13376e", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:33:38 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14984", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "8c53424b-bdcc-426d-9a7d-d963544cae3b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033339Z:8c53424b-bdcc-426d-9a7d-d963544cae3b", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "4edf857c-4612-4d67-ab25-ab38b9f06bb2", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:33:54 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14983", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "61a1d045-12fc-46d9-9b2b-c381fe59c87b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033354Z:61a1d045-12fc-46d9-9b2b-c381fe59c87b", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f891bcd8-52d9-4152-81ec-82bd0b2487bf", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:34:08 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14982", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "27b7fe07-4a03-4041-9f7a-7602e8df1150", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033409Z:27b7fe07-4a03-4041-9f7a-7602e8df1150", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "eb08d5ab-4272-4ef7-9135-1fdbf3aa5948", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:34:24 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14981", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "fa5fc79e-d767-483c-9d3b-2a6d1e47116a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033425Z:fa5fc79e-d767-483c-9d3b-2a6d1e47116a", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d4f744a3-9ffd-4fbe-9aac-bc097feb1b6b", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:34:39 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14980", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "99603926-4c75-4789-8298-6ab4de812e05", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033440Z:99603926-4c75-4789-8298-6ab4de812e05", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "9bc07f9a-6fab-4ae8-9444-21d162b3249b", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:34:54 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14979", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "185429dd-237a-4937-beff-3e0953b30874", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033455Z:185429dd-237a-4937-beff-3e0953b30874", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "e7640d7a-ec89-4d5f-a6b7-4476ea2c4789", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:35:10 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14978", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c982f351-584b-4699-8689-939e3f24514c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033510Z:c982f351-584b-4699-8689-939e3f24514c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d9c34692-f6fd-4f49-a1d4-25569ba067ac", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:35:25 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14977", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0eb18278-1ab4-4646-88bf-0b158fe4f38a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033525Z:0eb18278-1ab4-4646-88bf-0b158fe4f38a", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "96c4feed-3596-4dd4-bb10-fda3bb0a7560", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:35:40 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14976", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "9e3d0d1f-4265-4b11-9d17-3cba3b36b7b5", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033540Z:9e3d0d1f-4265-4b11-9d17-3cba3b36b7b5", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "d34f8eec-937c-44bf-a75a-6674b14125b7", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:35:55 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14975", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "1d11d4f4-40c5-4f8c-914b-e958969af8e1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033556Z:1d11d4f4-40c5-4f8c-914b-e958969af8e1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b2d7d7a4-eb20-476e-8ae9-aec0ffcaf515", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:36:10 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14974", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "86bea7dd-f2c3-445a-9109-497e26e6d0d1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033611Z:86bea7dd-f2c3-445a-9109-497e26e6d0d1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "ca353519-946d-4139-b1eb-354ce54949d6", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:36:26 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14973", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "30064edf-f55d-4bf6-aec4-20115fdececd", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033626Z:30064edf-f55d-4bf6-aec4-20115fdececd", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "6d0af64d-3780-45e5-8675-d8e7355b1f31", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:36:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14972", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "2fcce57c-9816-4329-907e-f944230ac816", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033642Z:2fcce57c-9816-4329-907e-f944230ac816", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "19b8674e-553f-4982-ae30-a97a90851a43", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:36:57 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14971", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "819fba5f-41ff-4a0b-a24a-04831f94f333", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033657Z:819fba5f-41ff-4a0b-a24a-04831f94f333", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b53d28b6-2945-41fd-a5aa-b2b7426b61b1", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:37:12 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14970", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "78910456-4d24-41aa-926e-a65b759203e1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033712Z:78910456-4d24-41aa-926e-a65b759203e1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "480dbf58-848b-4edc-b735-0a970f45e32f", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:37:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14969", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "4582a757-1b61-4d19-a5a2-7d518158ded9", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033727Z:4582a757-1b61-4d19-a5a2-7d518158ded9", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "92b8a509-9901-42a5-a572-4671ac3dab2f", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:37:42 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14968", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0d0990a8-38ea-4ba5-bc4b-c137a44c7c86", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033742Z:0d0990a8-38ea-4ba5-bc4b-c137a44c7c86", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8c2c892b-9f59-47bf-b2fa-cd5a83cf69e6", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:37:57 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14967", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0e93413f-5e13-4540-a9cc-04ad71eae52c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033757Z:0e93413f-5e13-4540-a9cc-04ad71eae52c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "55a6be4c-f69f-4d1d-85dd-3daf31f83123", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:38:13 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14966", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "2dc81d93-2563-48e5-beb0-808c1e66e408", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033813Z:2dc81d93-2563-48e5-beb0-808c1e66e408", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "89c42c18-a18c-4375-a84c-3fe85f046e67", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:38:27 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14965", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "283591f5-e02f-4dfa-91dd-258765748dca", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033828Z:283591f5-e02f-4dfa-91dd-258765748dca", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "a1999749-4afb-4fa1-8725-e2cf61296a88", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:38:43 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14964", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "2d650e9f-5123-41ed-8151-9ed145128766", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033843Z:2d650e9f-5123-41ed-8151-9ed145128766", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f5d4a2fc-2e91-4ac3-badd-5dc010edca49", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:38:58 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14963", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "f524ac2c-16cb-44b7-9047-856d2668e436", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033858Z:f524ac2c-16cb-44b7-9047-856d2668e436", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "50355949-f67e-4c73-8e4e-e2965beb3e0a", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:39:13 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14962", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "3160a73f-4043-467c-a98b-4d262836b883", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033913Z:3160a73f-4043-467c-a98b-4d262836b883", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "9b075b18-c001-437c-9b6b-3d9d993c04f6", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:39:28 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14961", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "7dfa917e-fa9f-4a18-a1fa-91a7ff4faced", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033929Z:7dfa917e-fa9f-4a18-a1fa-91a7ff4faced", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "5066819b-22c0-4d4b-87b3-cafd231656ec", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:39:43 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14960", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "e603a9ce-830d-4c78-ad8b-b260583264b7", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033944Z:e603a9ce-830d-4c78-ad8b-b260583264b7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "e9a0bdd7-0c99-46fe-8066-b5be09c61809", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:39:59 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14959", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "e81efc9b-cdaf-4f24-888d-6e7761f454b7", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T033959Z:e81efc9b-cdaf-4f24-888d-6e7761f454b7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "04af9b12-2b4d-4e8f-b8ff-b7cc99341411", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:40:13 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14958", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "24e37a82-687d-40a6-876c-a132c5f4edbd", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034014Z:24e37a82-687d-40a6-876c-a132c5f4edbd", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "fa5a6e37-1d52-4835-ac73-f98b550eaf0a", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:40:29 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14957", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ba07c707-957a-4795-9b1e-ac8512e78354", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034029Z:ba07c707-957a-4795-9b1e-ac8512e78354", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "ebeefa6e-a1a7-483a-bd2f-c538f977ccd3", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:40:44 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14956", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "88dbc8f4-f2b7-4f05-a8ca-3cd83fa9326c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034044Z:88dbc8f4-f2b7-4f05-a8ca-3cd83fa9326c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "2c0e4acd-4b73-464f-a4cd-1dfa704c6274", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:40:59 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14955", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "f63495f6-bd55-4037-9265-32353aeafd3b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034100Z:f63495f6-bd55-4037-9265-32353aeafd3b", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "2626411a-6712-4e9a-bdf7-4022d716ef93", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:41:15 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14954", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "629bc496-90f2-4929-b88f-157449fcd754", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034115Z:629bc496-90f2-4929-b88f-157449fcd754", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "42b16570-3833-4628-b937-21cd9b8066a6", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/dnsAliasAsyncOperation/33c66c1b-6961-4476-bdab-037e892f3adf?api-version=2017-03-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:41:30 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14953", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ef63d8c9-33db-48bd-ae85-542277b2af73", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034130Z:ef63d8c9-33db-48bd-ae85-542277b2af73", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "e5646f1c-f7fc-4eaa-bb68-6ec081c61c85", + "Body" : "{\"name\":\"33c66c1b-6961-4476-bdab-037e892f3adf\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-12T03:30:44.877Z\"}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322001?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:41:30 GMT", + "content-length" : "72", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "acae0e5b-8859-4c29-afb4-c857ac5fc5a9", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034131Z:acae0e5b-8859-4c29-afb4-c857ac5fc5a9", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverOperationResults/5a4e8b88-fef1-4dbc-858d-c43d5febe914?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "5a4e8b88-fef1-4dbc-858d-c43d5febe914", + "Body" : "{\"operation\":\"DropLogicalServer\",\"startTime\":\"2018-03-12T03:41:29.623Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/5a4e8b88-fef1-4dbc-858d-c43d5febe914?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/5a4e8b88-fef1-4dbc-858d-c43d5febe914?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:41:31 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14952", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "1ddeda07-3a97-4054-85ae-6c2570b2ac3c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034131Z:1ddeda07-3a97-4054-85ae-6c2570b2ac3c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "91bdd028-2d9c-425d-aeb9-366a17a6f354", + "Body" : "{\"name\":\"5a4e8b88-fef1-4dbc-858d-c43d5febe914\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:41:29.623Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/5a4e8b88-fef1-4dbc-858d-c43d5febe914?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:41:46 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14951", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b2e7efcf-1b88-41d7-8f1b-27d08ad6041a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034146Z:b2e7efcf-1b88-41d7-8f1b-27d08ad6041a", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "26b2c74e-fa1c-4ef6-8bb5-82c236cfec61", + "Body" : "{\"name\":\"5a4e8b88-fef1-4dbc-858d-c43d5febe914\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-12T03:41:29.623Z\"}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/servers/javasqlserver4322002?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:41:47 GMT", + "content-length" : "71", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "344b1381-cb85-4a08-ae50-01b330db5a5a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034147Z:344b1381-cb85-4a08-ae50-01b330db5a5a", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverOperationResults/23efd975-f81d-45f5-bb9e-ce54501d74ae?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "23efd975-f81d-45f5-bb9e-ce54501d74ae", + "Body" : "{\"operation\":\"DropLogicalServer\",\"startTime\":\"2018-03-12T03:41:45.62Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/23efd975-f81d-45f5-bb9e-ce54501d74ae?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/23efd975-f81d-45f5-bb9e-ce54501d74ae?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:41:47 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14950", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "419babb8-a4d7-4113-8c7d-e88efdd96061", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034147Z:419babb8-a4d7-4113-8c7d-e88efdd96061", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "1d9ca214-2c7c-4fe7-98da-faf5883b68b6", + "Body" : "{\"name\":\"23efd975-f81d-45f5-bb9e-ce54501d74ae\",\"status\":\"InProgress\",\"startTime\":\"2018-03-12T03:41:45.62Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgsql42a2891070c/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/23efd975-f81d-45f5-bb9e-ce54501d74ae?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:42:01 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14949", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "d4acd963-14b0-402f-87f1-bbdb1af4978b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034202Z:d4acd963-14b0-402f-87f1-bbdb1af4978b", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "1cb4ce45-39a9-4086-a3f8-327a5493c6ec", + "Body" : "{\"name\":\"23efd975-f81d-45f5-bb9e-ce54501d74ae\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-12T03:41:45.62Z\"}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgsql42a2891070c?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Mon, 12 Mar 2018 03:42:04 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "f4315fa6-6e30-42ed-827f-d7fcd2323dfa", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180312T034205Z:f4315fa6-6e30-42ed-827f-d7fcd2323dfa", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1NRTDQyQTI4OTEwNzBDLUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "f4315fa6-6e30-42ed-827f-d7fcd2323dfa", + "Body" : "" + } + } ], + "variables" : [ "rgsql42a2891070c", "javasqlserver432200", "b97c7079-78fc-4967-8b8d-d00b5154b353", "f0beb8b1-284f-458c-b308-333a816ad7a5", "48941c80-a5fe-46da-8a51-a26a47445b9b", "5930606a-ad76-4862-81da-4c5a0d89da84", "31e39c76-8798-4955-b1d8-609ff907e55c", "fd727c11-aef7-449b-9df2-1a45f4bb907b", "42a304e5-d431-4f13-a133-216cc1eabf45", "b5504e89-4f07-4d5e-ae2e-edea4115b70b", "c0088bea-6778-49dc-9305-60765c91b701", "e574de35-48c0-4e07-9850-1c243f40c1a3" ] +} \ No newline at end of file diff --git a/azure-samples/pom.xml b/azure-samples/pom.xml index 786d0a86858..91dc9861c24 100644 --- a/azure-samples/pom.xml +++ b/azure-samples/pom.xml @@ -166,6 +166,11 @@ docker-client 8.9.0 + + com.microsoft.sqlserver + mssql-jdbc + 6.4.0.jre7 + diff --git a/azure-samples/src/main/java/com/microsoft/azure/management/samples/Utils.java b/azure-samples/src/main/java/com/microsoft/azure/management/samples/Utils.java index 7c93840772e..0c234863389 100644 --- a/azure-samples/src/main/java/com/microsoft/azure/management/samples/Utils.java +++ b/azure-samples/src/main/java/com/microsoft/azure/management/samples/Utils.java @@ -146,6 +146,7 @@ import com.microsoft.azure.management.sql.SqlElasticPool; import com.microsoft.azure.management.sql.SqlFirewallRule; import com.microsoft.azure.management.sql.SqlServer; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRule; import com.microsoft.azure.management.storage.StorageAccount; import com.microsoft.azure.management.storage.StorageAccountEncryptionStatus; import com.microsoft.azure.management.storage.StorageAccountKey; @@ -1507,6 +1508,21 @@ public static void print(SqlFirewallRule firewallRule) { System.out.println(builder.toString()); } + /** + * Prints information for the passed virtual network rule. + * @param virtualNetworkRule virtual network rule to be printed. + */ + public static void print(SqlVirtualNetworkRule virtualNetworkRule) { + StringBuilder builder = new StringBuilder().append("SQL virtual network rule: ").append(virtualNetworkRule.id()) + .append("Name: ").append(virtualNetworkRule.name()) + .append("\n\tResource group: ").append(virtualNetworkRule.resourceGroupName()) + .append("\n\tSqlServer Name: ").append(virtualNetworkRule.sqlServerName()) + .append("\n\tSubnet ID: ").append(virtualNetworkRule.subnetId()) + .append("\n\tState: ").append(virtualNetworkRule.state()); + + System.out.println(builder.toString()); + } + /** * Prints information of the elastic pool passed in. * @param elasticPool elastic pool to be printed diff --git a/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlImportExportDatabase.java b/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlImportExportDatabase.java index d3f77b7fafd..839c74db723 100644 --- a/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlImportExportDatabase.java +++ b/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlImportExportDatabase.java @@ -79,12 +79,12 @@ public static boolean runSample(Azure azure) { .withRegion(sqlServer.regionName()) .withExistingResourceGroup(sqlServer.resourceGroupName()); - exportedDB = dbFromSample.exportTo(storageAccountCreatable, "from-sample", "dbfromsample.bacpac") + exportedDB = dbFromSample.exportTo(storageAccountCreatable, "container-name", "dbfromsample.bacpac") .withSqlAdministratorLoginAndPassword(administratorLogin, administratorPassword) .execute(); storageAccount = azure.storageAccounts().getByResourceGroup(sqlServer.resourceGroupName(), storageName); } else { - exportedDB = dbFromSample.exportTo(storageAccount, "from-sample", "dbfromsample.bacpac") + exportedDB = dbFromSample.exportTo(storageAccount, "container-name", "dbfromsample.bacpac") .withSqlAdministratorLoginAndPassword(administratorLogin, administratorPassword) .execute(); } @@ -98,7 +98,7 @@ public static boolean runSample(Azure azure) { .defineElasticPool("epi") .withStandardPool() .attach() - .importFrom(storageAccount, "from-sample", "dbfromsample.bacpac") + .importFrom(storageAccount, "container-name", "dbfromsample.bacpac") .withSqlAdministratorLoginAndPassword(administratorLogin, administratorPassword) .create(); Utils.print(dbFromImport); @@ -119,7 +119,7 @@ public static boolean runSample(Azure azure) { System.out.println("Importing data from a BACPAC to an empty database within an elastic pool."); dbEmpty - .importBacpac(storageAccount, "from-sample", "dbfromsample.bacpac") + .importBacpac(storageAccount, "container-name", "dbfromsample.bacpac") .withSqlAdministratorLoginAndPassword(administratorLogin, administratorPassword) .execute(); Utils.print(dbFromImport); diff --git a/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlServerDnsAliases.java b/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlServerDnsAliases.java new file mode 100644 index 00000000000..acac8e7f964 --- /dev/null +++ b/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlServerDnsAliases.java @@ -0,0 +1,255 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql.samples; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.ApplicationTokenCredentials; +import com.microsoft.azure.management.Azure; +import com.microsoft.azure.management.resources.fluentcore.arm.Region; +import com.microsoft.azure.management.resources.fluentcore.utils.SdkContext; +import com.microsoft.azure.management.samples.Utils; +import com.microsoft.azure.management.sql.SqlServer; +import com.microsoft.azure.management.sql.SqlServerDnsAlias; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.LogLevel; +import com.microsoft.rest.RestClient; + +import java.io.File; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.ResultSet; +import java.sql.Statement; +import java.util.concurrent.TimeUnit; + +/** + * Azure SQL sample for managing SQL Server DNS Aliases. + * - Create two SQL Servers "test" and "production", each with an empty database. + * - Create a new table and insert some expected values into each database. + * - Create a SQL Server DNS Alias to the "test" SQL database. + * - Query the "test" SQL database via the DNS alias and print the result. + * - Use the SQL Server DNS alias to acquire the "production" SQL database. + * - Query the "production" SQL database via the DNS alias and print the result. + * - Delete the SQL Servers + */ + +public class ManageSqlServerDnsAliases { + /** + * Main function which runs the actual sample. + * @param azure instance of the azure client + * @return true if sample runs successfully + */ + public static boolean runSample(Azure azure) { + final String sqlServerForTestName = Utils.createRandomName("sqltest"); + final String sqlServerForProdName = Utils.createRandomName("sqlprod"); + final String sqlServerDnsAlias = Utils.createRandomName("sqlserver"); + final String dbName = "dbSample"; + final String rgName = Utils.createRandomName("rgRSSDFW"); + final String administratorLogin = "sqladmin3423"; + final String administratorPassword = "myS3curePwd"; + try { + // Check if the expected SQL driver is available + Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); + + // ============================================================ + // Create a "test" SQL Server. + System.out.println("Creating a SQL server for test related activities"); + + SqlServer sqlServerForTest = azure.sqlServers().define(sqlServerForTestName) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .withAdministratorLogin(administratorLogin) + .withAdministratorPassword(administratorPassword) + .defineFirewallRule("allowAll") + .withIPAddressRange("0.0.0.1", "255.255.255.255") + .attach() + .defineDatabase(dbName) + .withBasicEdition() + .attach() + .create(); + + Utils.print(sqlServerForTest); + + // ============================================================ + // Create a connection to the "test" SQL Server. + System.out.println("Creating a connection to the \"test\" SQL Server"); + String connectionToSqlTestUrl = String.format("jdbc:sqlserver://%s:1433;database=%s;user=%s;password=%s;", + sqlServerForTest.fullyQualifiedDomainName(), + dbName, + administratorLogin, + administratorPassword); + + // Establish the connection. + Connection conTest = DriverManager.getConnection(connectionToSqlTestUrl); + + + // ============================================================ + // Create a new table into the "test" SQL Server database and insert one value. + System.out.println("Creating a new table into the \"test\" SQL Server database and insert one value"); + + Statement stmt = conTest.createStatement(); + + String sqlCommand = "CREATE TABLE [Dns_Alias_Sample_Test] ([Name] [varchar](30) NOT NULL)"; + stmt.execute(sqlCommand); + + sqlCommand = "INSERT Dns_Alias_Sample_Test VALUES ('Test')"; + stmt.execute(sqlCommand); + + // Close the connection to the "test" database + conTest.close(); + + + // ============================================================ + // Create a "production" SQL Server. + System.out.println("Creating a SQL server for production related activities"); + + SqlServer sqlServerForProd = azure.sqlServers().define(sqlServerForProdName) + .withRegion(Region.US_WEST) + .withExistingResourceGroup(rgName) + .withAdministratorLogin(administratorLogin) + .withAdministratorPassword(administratorPassword) + .defineFirewallRule("allowAll") + .withIPAddressRange("0.0.0.1", "255.255.255.255") + .attach() + .defineDatabase(dbName) + .withBasicEdition() + .attach() + .create(); + + Utils.print(sqlServerForProd); + + // ============================================================ + // Create a connection to the "production" SQL Server. + System.out.println("Creating a connection to the \"production\" SQL Server"); + + String connectionToSqlProdUrl = String.format("jdbc:sqlserver://%s:1433;database=%s;user=%s;password=%s;", + sqlServerForProd.fullyQualifiedDomainName(), + dbName, + administratorLogin, + administratorPassword); + + // Establish the connection. + Connection conProd = DriverManager.getConnection(connectionToSqlProdUrl); + + + // ============================================================ + // Create a new table into the "production" SQL Server database and insert one value. + System.out.println("Creating a new table into the \"production\" SQL Server database and insert one value"); + + stmt = conProd.createStatement(); + + sqlCommand = "CREATE TABLE [Dns_Alias_Sample_Prod] ([Name] [varchar](30) NOT NULL)"; + stmt.execute(sqlCommand); + + sqlCommand = "INSERT Dns_Alias_Sample_Prod VALUES ('Production')"; + stmt.execute(sqlCommand); + + // Close the connection to the "production" database + conProd.close(); + + + // ============================================================ + // Create a SQL Server DNS alias and use it to query the "test" database. + System.out.println("Creating a SQL Server DNS alias and use it to query the \"test\" database"); + + SqlServerDnsAlias dnsAlias = sqlServerForTest.dnsAliases() + .define(sqlServerDnsAlias) + .create(); + SdkContext.sleep(5 * 60 * 1000); + + String connectionUrl = String.format("jdbc:sqlserver://%s:1433;database=%s;user=%s;password=%s;", + dnsAlias.azureDnsRecord(), + dbName, + administratorLogin, + administratorPassword); + + // Establish the connection. + Connection conDnsAlias = DriverManager.getConnection(connectionUrl); + + stmt = conDnsAlias.createStatement(); + sqlCommand = "SELECT * FROM Dns_Alias_Sample_Test;"; + ResultSet resultSet = stmt.executeQuery(sqlCommand); + // Print results from select statement + System.out.println("SELECT * FROM Dns_Alias_Sample_Test"); + while (resultSet.next()) { + System.out.format("\t%s\n", resultSet.getString(1)); + } + conDnsAlias.close(); + + + // ============================================================ + // Use the "production" SQL Server to acquire the SQL Server DNS Alias and use it to query the "production" database. + System.out.println("Using the \"production\" SQL Server to acquire the SQL Server DNS Alias and use it to query the \"production\" database"); + + sqlServerForProd.dnsAliases().acquire(sqlServerDnsAlias, sqlServerForTest.id()); + + // It takes some time for the DNS alias to reflect the new Server connection + SdkContext.sleep(10 * 60 * 1000); + + // Re-establish the connection. + conDnsAlias = DriverManager.getConnection(connectionUrl); + + stmt = conDnsAlias.createStatement(); + sqlCommand = "SELECT * FROM Dns_Alias_Sample_Prod;"; + resultSet = stmt.executeQuery(sqlCommand); + // Print results from select statement + System.out.println("SELECT * FROM Dns_Alias_Sample_Prod"); + while (resultSet.next()) { + System.out.format("\t%s\n", resultSet.getString(1)); + } + + conDnsAlias.close(); + + // Delete the SQL Servers. + System.out.println("Deleting the Sql Servers"); + azure.sqlServers().deleteById(sqlServerForTest.id()); + azure.sqlServers().deleteById(sqlServerForProd.id()); + return true; + } catch (Exception f) { + System.out.println(f.getMessage()); + f.printStackTrace(); + } finally { + try { + System.out.println("Deleting Resource Group: " + rgName); + azure.resourceGroups().deleteByName(rgName); + System.out.println("Deleted Resource Group: " + rgName); + } + catch (Exception e) { + System.out.println("Did not create any resources in Azure. No clean up is necessary"); + } + } + return false; + } + + /** + * Main entry point. + * @param args the parameters + */ + public static void main(String[] args) { + try { + final File credFile = new File(System.getenv("AZURE_AUTH_LOCATION")); + + + ApplicationTokenCredentials credentials = ApplicationTokenCredentials.fromFile(credFile); + RestClient restClient = new RestClient.Builder() + .withBaseUrl(AzureEnvironment.AZURE, AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .withReadTimeout(150, TimeUnit.SECONDS) + .withLogLevel(LogLevel.BODY) + .withCredentials(credentials).build(); + Azure azure = Azure.authenticate(restClient, credentials.domain(), credentials.defaultSubscriptionId()).withDefaultSubscription(); + + // Print selected subscription + System.out.println("Selected subscription: " + azure.subscriptionId()); + + runSample(azure); + } catch (Exception e) { + System.out.println(e.getMessage()); + e.printStackTrace(); + } + } +} diff --git a/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlVirtualNetworkRules.java b/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlVirtualNetworkRules.java new file mode 100644 index 00000000000..5069d9b9fa1 --- /dev/null +++ b/azure-samples/src/main/java/com/microsoft/azure/management/sql/samples/ManageSqlVirtualNetworkRules.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.sql.samples; + +import com.microsoft.azure.AzureEnvironment; +import com.microsoft.azure.AzureResponseBuilder; +import com.microsoft.azure.credentials.ApplicationTokenCredentials; +import com.microsoft.azure.management.Azure; +import com.microsoft.azure.management.network.Network; +import com.microsoft.azure.management.network.ServiceEndpointType; +import com.microsoft.azure.management.resources.fluentcore.arm.Region; +import com.microsoft.azure.management.resources.fluentcore.utils.SdkContext; +import com.microsoft.azure.management.samples.Utils; +import com.microsoft.azure.management.sql.SqlServer; +import com.microsoft.azure.management.sql.SqlVirtualNetworkRule; +import com.microsoft.azure.serializer.AzureJacksonAdapter; +import com.microsoft.rest.LogLevel; +import com.microsoft.rest.RestClient; + +import java.io.File; +import java.util.List; +import java.util.concurrent.TimeUnit; + +/** + * Azure SQL sample for managing SQL Virtual Network Rules + * - Create a Virtual Network with two subnets. + * - Create a SQL Server along with one virtual network rule. + * - Add another virtual network rule in the SQL Server + * - Get a virtual network rule. + * - Update a virtual network rule. + * - List all virtual network rules. + * - Delete a virtual network. + * - Delete Sql Server + */ + +public class ManageSqlVirtualNetworkRules { + /** + * Main function which runs the actual sample. + * @param azure instance of the azure client + * @return true if sample runs successfully + */ + public static boolean runSample(Azure azure) { + final String sqlServerName = Utils.createRandomName("sqlserver"); + final String rgName = Utils.createRandomName("rgRSSDFW"); + final String administratorLogin = "sqladmin3423"; + final String administratorPassword = "myS3cureP@ssword"; + final String vnetName = SdkContext.randomResourceName("vnetsql", 20); + + try { + + // ============================================================ + // Create a virtual network with two subnets. + System.out.println("Create a virtual network with two subnets: subnet1 and subnet2"); + + Network virtualNetwork = azure.networks().define(vnetName) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .withAddressSpace("192.168.0.0/16") + .defineSubnet("subnet1") + .withAddressPrefix("192.168.1.0/24") + .withAccessFromService(ServiceEndpointType.MICROSOFT_SQL) + .attach() + .withSubnet("subnet2", "192.168.2.0/24") + .create(); + + System.out.println("Created a virtual network"); + // Print the virtual network details + Utils.print(virtualNetwork); + + // ============================================================ + // Create a SQL Server, with one virtual network rule. + System.out.println("Create a SQL server with one virtual network rule"); + + SqlServer sqlServer = azure.sqlServers().define(sqlServerName) + .withRegion(Region.US_EAST) + .withExistingResourceGroup(rgName) + .withAdministratorLogin(administratorLogin) + .withAdministratorPassword(administratorPassword) + .withoutAccessFromAzureServices() + .defineVirtualNetworkRule("virtualNetworkRule1") + .withSubnet(virtualNetwork.id(), "subnet1") + .attach() + .create(); + + Utils.print(sqlServer); + + + // ============================================================ + // Get the virtual network rule created above. + SqlVirtualNetworkRule virtualNetworkRule = azure.sqlServers().virtualNetworkRules() + .getBySqlServer(rgName, sqlServerName, "virtualNetworkRule1"); + + Utils.print(virtualNetworkRule); + + + // ============================================================ + // Add new virtual network rules. + System.out.println("adding another virtual network rule in existing SQL Server"); + virtualNetworkRule = sqlServer.virtualNetworkRules() + .define("virtualNetworkRule2") + .withSubnet(virtualNetwork.id(), "subnet2") + .ignoreMissingSqlServiceEndpoint() + .create(); + + Utils.print(virtualNetworkRule); + + + // ============================================================ + // Update a virtual network rules. + System.out.println("Updating an existing virtual network rules in SQL Server."); + virtualNetworkRule.update() + .withSubnet(virtualNetwork.id(), "subnet1") + .apply(); + + Utils.print(virtualNetworkRule); + + + // ============================================================ + // List and delete all virtual network rules. + System.out.println("Listing all virtual network rules in SQL Server."); + + List virtualNetworkRules = sqlServer.virtualNetworkRules().list(); + for (SqlVirtualNetworkRule vnetRule : virtualNetworkRules) { + // Delete the virtual network rule. + System.out.println("Deleting a virtual network rule"); + vnetRule.delete(); + } + + + // Delete the SQL Server. + System.out.println("Deleting a Sql Server"); + azure.sqlServers().deleteById(sqlServer.id()); + return true; + } catch (Exception f) { + System.out.println(f.getMessage()); + f.printStackTrace(); + } finally { + try { + System.out.println("Deleting Resource Group: " + rgName); + azure.resourceGroups().deleteByName(rgName); + System.out.println("Deleted Resource Group: " + rgName); + } + catch (Exception e) { + System.out.println("Did not create any resources in Azure. No clean up is necessary"); + } + } + return false; + } + + /** + * Main entry point. + * @param args the parameters + */ + public static void main(String[] args) { + try { + final File credFile = new File(System.getenv("AZURE_AUTH_LOCATION")); + + + ApplicationTokenCredentials credentials = ApplicationTokenCredentials.fromFile(credFile); + RestClient restClient = new RestClient.Builder() + .withBaseUrl(AzureEnvironment.AZURE, AzureEnvironment.Endpoint.RESOURCE_MANAGER) + .withSerializerAdapter(new AzureJacksonAdapter()) + .withResponseBuilderFactory(new AzureResponseBuilder.Factory()) + .withReadTimeout(150, TimeUnit.SECONDS) + .withLogLevel(LogLevel.BODY) + .withCredentials(credentials).build(); + Azure azure = Azure.authenticate(restClient, credentials.domain(), credentials.defaultSubscriptionId()).withDefaultSubscription(); + + // Print selected subscription + System.out.println("Selected subscription: " + azure.subscriptionId()); + + runSample(azure); + } catch (Exception e) { + System.out.println(e.getMessage()); + e.printStackTrace(); + } + } +} diff --git a/azure-samples/src/test/java/com/microsoft/azure/management/samples/SqlSampleTests.java b/azure-samples/src/test/java/com/microsoft/azure/management/samples/SqlSampleTests.java index c643f474f7a..75f839be8e7 100644 --- a/azure-samples/src/test/java/com/microsoft/azure/management/samples/SqlSampleTests.java +++ b/azure-samples/src/test/java/com/microsoft/azure/management/samples/SqlSampleTests.java @@ -11,6 +11,8 @@ import com.microsoft.azure.management.sql.samples.ManageSqlDatabasesAcrossDifferentDataCenters; import com.microsoft.azure.management.sql.samples.ManageSqlFirewallRules; import com.microsoft.azure.management.sql.samples.ManageSqlImportExportDatabase; +import com.microsoft.azure.management.sql.samples.ManageSqlServerDnsAliases; +import com.microsoft.azure.management.sql.samples.ManageSqlVirtualNetworkRules; import com.microsoft.azure.management.sql.samples.ManageSqlWithRecoveredOrRestoredDatabase; import com.microsoft.rest.RestClient; import org.junit.Assert; @@ -47,6 +49,11 @@ public void testManageSqlFirewallRules() { Assert.assertTrue(ManageSqlFirewallRules.runSample(azure)); } + @Test + public void testManageSqlVirtualNetworkRules() { + Assert.assertTrue(ManageSqlVirtualNetworkRules.runSample(azure)); + } + @Test public void testManageSqlImportExportDatabase() { // Skip test in "playback" mode due to HTTP calls made outside of the management plane which can not be recorded at this time @@ -61,4 +68,12 @@ public void testManageSqlWithRecoveredOrRestoredDatabase() { Assert.assertTrue(ManageSqlWithRecoveredOrRestoredDatabase.runSample(azure)); } + @Test + public void testManageSqlServerDnsAliases() { + // Skip test in "playback" mode due to HTTP calls made outside of the management plane which can not be recorded at this time + if (!isPlaybackMode()) { + Assert.assertTrue(ManageSqlServerDnsAliases.runSample(azure)); + } + } + } diff --git a/azure-samples/src/test/resources/session-records/testManageSqlServerDnsAliases.json b/azure-samples/src/test/resources/session-records/testManageSqlServerDnsAliases.json new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/azure-samples/src/test/resources/session-records/testManageSqlServerDnsAliases.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/azure-samples/src/test/resources/session-records/testManageSqlVirtualNetworkRules.json b/azure-samples/src/test/resources/session-records/testManageSqlVirtualNetworkRules.json new file mode 100644 index 00000000000..f972fd9cd4a --- /dev/null +++ b/azure-samples/src/test/resources/session-records/testManageSqlVirtualNetworkRules.json @@ -0,0 +1,1211 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgrssdfw3eb7655012966cf?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:04 GMT", + "content-length" : "199", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "53b52a52-eddd-43de-b1bf-f1af780579c4", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041504Z:53b52a52-eddd-43de-b1bf-f1af780579c4", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "53b52a52-eddd-43de-b1bf-f1af780579c4", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf\",\"name\":\"rgrssdfw3eb7655012966cf\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455?api-version=2017-08-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (NetworkManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:06 GMT", + "content-length" : "1831", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "8cbe69a4-0a59-43a4-9358-82b730771622", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041506Z:8cbe69a4-0a59-43a4-9358-82b730771622", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "972b7f02-8023-4d50-894b-f0a2dd9dd50b", + "Body" : "{\r\n \"name\": \"vnetsqlf955928455\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455\",\r\n \"etag\": \"W/\\\"0bdb7603-1537-4a8b-b795-b127f375ca4f\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"43ef6616-3dd8-46af-b5c9-2ac5f5bdb181\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet1\",\r\n \"etag\": \"W/\\\"0bdb7603-1537-4a8b-b795-b127f375ca4f\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"192.168.1.0/24\",\r\n \"serviceEndpoints\": [\r\n {\r\n \"provisioningState\": \"Updating\",\r\n \"service\": \"Microsoft.Sql\",\r\n \"locations\": [\r\n \"eastus\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"subnet2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet2\",\r\n \"etag\": \"W/\\\"0bdb7603-1537-4a8b-b795-b127f375ca4f\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"192.168.2.0/24\"\r\n }\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/972b7f02-8023-4d50-894b-f0a2dd9dd50b?api-version=2017-08-01" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/972b7f02-8023-4d50-894b-f0a2dd9dd50b?api-version=2017-08-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (NetworkManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:07 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "30", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14998", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "5f46f2ea-384c-4cb6-a30e-6a09662213b1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041507Z:5f46f2ea-384c-4cb6-a30e-6a09662213b1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "be477c73-6a3f-49d7-91ab-9920ce3b4460", + "Body" : "{\r\n \"status\": \"InProgress\"\r\n}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/972b7f02-8023-4d50-894b-f0a2dd9dd50b?api-version=2017-08-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (NetworkManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:17 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "29", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14997", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "754b8c98-7a42-4a14-a1ef-422cf3013fae", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041517Z:754b8c98-7a42-4a14-a1ef-422cf3013fae", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "eba1d485-5a2a-4a46-bece-f37936dcb5cd", + "Body" : "{\r\n \"status\": \"Succeeded\"\r\n}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455?api-version=2017-08-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (NetworkManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:17 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1835", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14996", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "bee84739-2d34-4fb2-9415-ff28619f040a", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041517Z:bee84739-2d34-4fb2-9415-ff28619f040a", + "content-type" : "application/json; charset=utf-8", + "etag" : "W/\"b2a76e1e-1fd3-4a53-b914-2c43c08bec55\"", + "cache-control" : "no-cache", + "x-ms-request-id" : "eef19314-b9a2-46df-9833-1f289463d3ca", + "Body" : "{\r\n \"name\": \"vnetsqlf955928455\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455\",\r\n \"etag\": \"W/\\\"b2a76e1e-1fd3-4a53-b914-2c43c08bec55\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"43ef6616-3dd8-46af-b5c9-2ac5f5bdb181\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"192.168.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet1\",\r\n \"etag\": \"W/\\\"b2a76e1e-1fd3-4a53-b914-2c43c08bec55\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"192.168.1.0/24\",\r\n \"serviceEndpoints\": [\r\n {\r\n \"provisioningState\": \"Succeeded\",\r\n \"service\": \"Microsoft.Sql\",\r\n \"locations\": [\r\n \"eastus\"\r\n ]\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"subnet2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet2\",\r\n \"etag\": \"W/\\\"b2a76e1e-1fd3-4a53-b914-2c43c08bec55\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"192.168.2.0/24\"\r\n }\r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\": false\r\n }\r\n}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/virtualNetworkPeerings?api-version=2017-08-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (NetworkManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:17 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "19", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14995", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "e9a0c5f2-0702-4cde-a29f-2a4c4efa2dea", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041517Z:e9a0c5f2-0702-4cde-a29f-2a4c4efa2dea", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "be486be9-9c77-408f-9195-24a67fdbc041", + "Body" : "{\r\n \"value\": []\r\n}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:18 GMT", + "content-length" : "74", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "04e078ad-8d73-41fa-b39b-cd1dd9cde687", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041519Z:04e078ad-8d73-41fa-b39b-cd1dd9cde687", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverOperationResults/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "93b02f98-5f36-49a5-898a-1d82770f56c9", + "Body" : "{\"operation\":\"UpsertLogicalServer\",\"startTime\":\"2018-03-10T04:15:17.557Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:18 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14994", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "a424499e-deef-4311-ba19-de22e2929d87", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041519Z:a424499e-deef-4311-ba19-de22e2929d87", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "0030d23d-dc5c-426a-924e-5047772ee9e3", + "Body" : "{\"name\":\"93b02f98-5f36-49a5-898a-1d82770f56c9\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:15:17.557Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:19 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14993", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "99b6042d-2ee6-4024-a569-9e30ddd4dc0d", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041520Z:99b6042d-2ee6-4024-a569-9e30ddd4dc0d", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "3eddee60-57ae-41f4-a88b-ed7d2a737d59", + "Body" : "{\"name\":\"93b02f98-5f36-49a5-898a-1d82770f56c9\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:15:17.557Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:20 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14992", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "8c593880-015f-4adc-83d2-2d8c370b90fe", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041521Z:8c593880-015f-4adc-83d2-2d8c370b90fe", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "a073a669-ee9a-4c4a-96c7-466c7358c97e", + "Body" : "{\"name\":\"93b02f98-5f36-49a5-898a-1d82770f56c9\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:15:17.557Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:22 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14991", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0bf7c899-a535-4273-ae2d-b5eca5b63c99", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041522Z:0bf7c899-a535-4273-ae2d-b5eca5b63c99", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "176526e3-9575-4232-946a-fffad866dbd6", + "Body" : "{\"name\":\"93b02f98-5f36-49a5-898a-1d82770f56c9\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:15:17.557Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:23 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14990", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "50713808-f429-4fc2-b1c3-24c825466cd8", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041524Z:50713808-f429-4fc2-b1c3-24c825466cd8", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "35d2599f-5d8d-42f9-88f8-eef20b772a94", + "Body" : "{\"name\":\"93b02f98-5f36-49a5-898a-1d82770f56c9\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:15:17.557Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:15:43 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14989", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0ae1bb4b-2eb3-4e61-bebf-618234f938e7", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041544Z:0ae1bb4b-2eb3-4e61-bebf-618234f938e7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "85ba78e4-48e1-4413-9fb2-7d1f879abfeb", + "Body" : "{\"name\":\"93b02f98-5f36-49a5-898a-1d82770f56c9\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:15:17.557Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/93b02f98-5f36-49a5-898a-1d82770f56c9?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:04 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14988", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c79d18c5-caf3-4c75-817c-797fbdee21ca", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041604Z:c79d18c5-caf3-4c75-817c-797fbdee21ca", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "502f50b2-f9f4-4cbb-8a77-aa7a74b4f698", + "Body" : "{\"name\":\"93b02f98-5f36-49a5-898a-1d82770f56c9\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-10T04:15:17.557Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:04 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "422", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14987", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "1ebfc053-8ea7-4bd7-becd-354053110e0f", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041604Z:1ebfc053-8ea7-4bd7-becd-354053110e0f", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "c898f381-bd23-4e39-9a63-dbd5478f3d81", + "Body" : "{\"kind\":\"v12.0\",\"properties\":{\"administratorLogin\":\"sqladmin3423\",\"version\":\"12.0\",\"state\":\"Ready\",\"fullyQualifiedDomainName\":\"sqlservera49335291ee1ee.database.windows.net\"},\"location\":\"eastus\",\"tags\":{},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee\",\"name\":\"sqlservera49335291ee1ee\",\"type\":\"Microsoft.Sql/servers\"}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule1?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:08 GMT", + "content-length" : "76", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ff1454f6-33e3-40d6-8c84-3a8967b1f750", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041608Z:ff1454f6-33e3-40d6-8c84-3a8967b1f750", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesOperationResults/aba2d417-b35c-4273-a694-365b286a83b0?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "aba2d417-b35c-4273-a694-365b286a83b0", + "Body" : "{\"operation\":\"UpsertVnetFirewallRule\",\"startTime\":\"2018-03-10T04:16:07.05Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/aba2d417-b35c-4273-a694-365b286a83b0?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/aba2d417-b35c-4273-a694-365b286a83b0?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:08 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14986", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "1c99b082-f2da-45a0-9d7f-85e388ea983d", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041608Z:1c99b082-f2da-45a0-9d7f-85e388ea983d", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "5469453d-6834-45f1-a2c5-99cc769b8b74", + "Body" : "{\"name\":\"aba2d417-b35c-4273-a694-365b286a83b0\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:16:07.05Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/aba2d417-b35c-4273-a694-365b286a83b0?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:23 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14985", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "44fb617b-1387-4f27-b0c1-84c104d1486e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041623Z:44fb617b-1387-4f27-b0c1-84c104d1486e", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "a3a97881-6972-492b-b8c3-357afde8354d", + "Body" : "{\"name\":\"aba2d417-b35c-4273-a694-365b286a83b0\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-10T04:16:07.05Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule1?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:23 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "543", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14984", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "9b8a2427-efee-4ec2-82b6-4872b71792a7", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041623Z:9b8a2427-efee-4ec2-82b6-4872b71792a7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "9107c840-149d-49ea-9a88-804283550ffe", + "Body" : "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule1\",\"name\":\"virtualNetworkRule1\",\"type\":\"Microsoft.Sql/servers/virtualNetworkRules\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule1?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:23 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "543", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14983", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c4d6af0d-a6a8-4cb0-946e-9f78be54a1d1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041624Z:c4d6af0d-a6a8-4cb0-946e-9f78be54a1d1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "e7c0b8ad-cd30-4fd1-866a-806a2ad7325c", + "Body" : "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule1\",\"name\":\"virtualNetworkRule1\",\"type\":\"Microsoft.Sql/servers/virtualNetworkRules\"}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule2?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:24 GMT", + "content-length" : "75", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "d6f33e7b-488c-43f2-85d8-dda92cd4a1f1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041624Z:d6f33e7b-488c-43f2-85d8-dda92cd4a1f1", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesOperationResults/6464a01e-6fa3-4241-b2b9-ce0ae5af142d?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "6464a01e-6fa3-4241-b2b9-ce0ae5af142d", + "Body" : "{\"operation\":\"UpsertVnetFirewallRule\",\"startTime\":\"2018-03-10T04:16:23.3Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/6464a01e-6fa3-4241-b2b9-ce0ae5af142d?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/6464a01e-6fa3-4241-b2b9-ce0ae5af142d?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:24 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14982", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "fcb5d2f6-8dc7-4f9a-8f94-f2850563312b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041624Z:fcb5d2f6-8dc7-4f9a-8f94-f2850563312b", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "10b759f2-fc35-4dee-b0bd-f6287579e89e", + "Body" : "{\"name\":\"6464a01e-6fa3-4241-b2b9-ce0ae5af142d\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:16:23.3Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/6464a01e-6fa3-4241-b2b9-ce0ae5af142d?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:39 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14981", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ff0c2b6f-d8b2-4aeb-84d6-d521d3c6b6ed", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041640Z:ff0c2b6f-d8b2-4aeb-84d6-d521d3c6b6ed", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b07f6337-9616-47f8-b5a0-06dd0733ae0a", + "Body" : "{\"name\":\"6464a01e-6fa3-4241-b2b9-ce0ae5af142d\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:16:23.3Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/6464a01e-6fa3-4241-b2b9-ce0ae5af142d?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:54 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "105", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14980", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "591a73f9-bd55-4779-83df-2e381455c3a7", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041655Z:591a73f9-bd55-4779-83df-2e381455c3a7", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "a3185052-8dcb-43d2-b920-28785cedc760", + "Body" : "{\"name\":\"6464a01e-6fa3-4241-b2b9-ce0ae5af142d\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-10T04:16:23.3Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule2?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:54 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "542", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14979", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c25b0e51-5ba5-4878-8703-1b3bbe2e5e87", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041655Z:c25b0e51-5ba5-4878-8703-1b3bbe2e5e87", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "8d2a795a-9338-46a2-9fbe-e659a6049e02", + "Body" : "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet2\",\"ignoreMissingVnetServiceEndpoint\":true,\"state\":\"Ready\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule2\",\"name\":\"virtualNetworkRule2\",\"type\":\"Microsoft.Sql/servers/virtualNetworkRules\"}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule2?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:54 GMT", + "content-length" : "77", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "fce073e2-2cec-4cb3-9905-48e1a19fcd12", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041655Z:fce073e2-2cec-4cb3-9905-48e1a19fcd12", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesOperationResults/bbac7fdc-9278-4090-a25f-512f4df7b2c3?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "bbac7fdc-9278-4090-a25f-512f4df7b2c3", + "Body" : "{\"operation\":\"UpsertVnetFirewallRule\",\"startTime\":\"2018-03-10T04:16:54.077Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/bbac7fdc-9278-4090-a25f-512f4df7b2c3?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/bbac7fdc-9278-4090-a25f-512f4df7b2c3?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:16:54 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14978", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "69e67b1c-5352-4bcc-9fed-06ebb73b01cc", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041655Z:69e67b1c-5352-4bcc-9fed-06ebb73b01cc", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "2b940e93-dcf9-4e57-9e95-77e4ac2263a4", + "Body" : "{\"name\":\"bbac7fdc-9278-4090-a25f-512f4df7b2c3\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:16:54.077Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/bbac7fdc-9278-4090-a25f-512f4df7b2c3?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:10 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14977", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "50148f1f-be57-4c22-868c-b4b6c457950f", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041710Z:50148f1f-be57-4c22-868c-b4b6c457950f", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "df9f73ae-e70b-4ffc-832f-cdd0606eaeb9", + "Body" : "{\"name\":\"bbac7fdc-9278-4090-a25f-512f4df7b2c3\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-10T04:16:54.077Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule2?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:10 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "543", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14976", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "f20c37b6-6be1-40da-bede-9638f15ead03", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041710Z:f20c37b6-6be1-40da-bede-9638f15ead03", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f9f34b5d-8857-4373-b39b-e11478753d46", + "Body" : "{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule2\",\"name\":\"virtualNetworkRule2\",\"type\":\"Microsoft.Sql/servers/virtualNetworkRules\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:10 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "1099", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14975", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "4e9e65b1-2bbc-46e9-a573-d206c6923922", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041710Z:4e9e65b1-2bbc-46e9-a573-d206c6923922", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "b2f2c248-79a5-4560-98eb-30a8c9330522", + "Body" : "{\"value\":[{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule1\",\"name\":\"virtualNetworkRule1\",\"type\":\"Microsoft.Sql/servers/virtualNetworkRules\"},{\"properties\":{\"virtualNetworkSubnetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Network/virtualNetworks/vnetsqlf955928455/subnets/subnet1\",\"ignoreMissingVnetServiceEndpoint\":false,\"state\":\"Ready\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule2\",\"name\":\"virtualNetworkRule2\",\"type\":\"Microsoft.Sql/servers/virtualNetworkRules\"}]}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule1?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:11 GMT", + "content-length" : "74", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "a8210f3c-f3fc-4c47-8304-f107462a59da", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041711Z:a8210f3c-f3fc-4c47-8304-f107462a59da", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesOperationResults/11ff0de9-a340-4a1e-af53-1c0e61f05941?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "11ff0de9-a340-4a1e-af53-1c0e61f05941", + "Body" : "{\"operation\":\"DropVnetFirewallRule\",\"startTime\":\"2018-03-10T04:17:09.84Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/11ff0de9-a340-4a1e-af53-1c0e61f05941?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/11ff0de9-a340-4a1e-af53-1c0e61f05941?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:11 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14974", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "8620d4fc-4dc8-4216-914b-4e1a328a1f39", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041711Z:8620d4fc-4dc8-4216-914b-4e1a328a1f39", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "33e3f8a8-b55b-43fc-84d4-84a04fa79455", + "Body" : "{\"name\":\"11ff0de9-a340-4a1e-af53-1c0e61f05941\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:17:09.84Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/11ff0de9-a340-4a1e-af53-1c0e61f05941?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:26 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14973", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "4d25d2e8-5485-4daf-a118-209b702d559c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041726Z:4d25d2e8-5485-4daf-a118-209b702d559c", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "252a179c-85c4-4dc1-bd9f-e92b200e731e", + "Body" : "{\"name\":\"11ff0de9-a340-4a1e-af53-1c0e61f05941\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-10T04:17:09.84Z\"}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee/virtualNetworkRules/virtualNetworkRule2?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:26 GMT", + "content-length" : "74", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1192", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "f3f80687-d617-4ef9-ac72-15c5cea35fd8", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041726Z:f3f80687-d617-4ef9-ac72-15c5cea35fd8", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesOperationResults/f244948c-2fba-4746-8878-a2418586bb20?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "f244948c-2fba-4746-8878-a2418586bb20", + "Body" : "{\"operation\":\"DropVnetFirewallRule\",\"startTime\":\"2018-03-10T04:17:25.32Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/f244948c-2fba-4746-8878-a2418586bb20?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/f244948c-2fba-4746-8878-a2418586bb20?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:26 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14972", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "59d3803d-73c9-43af-ba63-5ac08b394957", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041727Z:59d3803d-73c9-43af-ba63-5ac08b394957", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f6ee9f97-c304-4709-bf07-56aad984da74", + "Body" : "{\"name\":\"f244948c-2fba-4746-8878-a2418586bb20\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:17:25.32Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/eastus/virtualNetworkRulesAzureAsyncOperation/f244948c-2fba-4746-8878-a2418586bb20?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "106", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14971", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0df46808-16b8-4487-8080-3b91e8bb1e25", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041742Z:0df46808-16b8-4487-8080-3b91e8bb1e25", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "05f6652f-3cb6-490b-87e0-c422581567a2", + "Body" : "{\"name\":\"f244948c-2fba-4746-8878-a2418586bb20\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-10T04:17:25.32Z\"}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/servers/sqlservera49335291ee1ee?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:41 GMT", + "content-length" : "72", + "server" : "Microsoft-HTTPAPI/2.0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1191", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "01c23ad2-32e6-40bc-8bda-eb6179d7a47e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041742Z:01c23ad2-32e6-40bc-8bda-eb6179d7a47e", + "content-type" : "application/json; charset=utf-8", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverOperationResults/ebaaa4d1-ffdb-4caf-89c5-47265c5512ab?api-version=2015-05-01-preview", + "cache-control" : "no-cache", + "x-ms-request-id" : "ebaaa4d1-ffdb-4caf-89c5-47265c5512ab", + "Body" : "{\"operation\":\"DropLogicalServer\",\"startTime\":\"2018-03-10T04:17:41.223Z\"}", + "azure-asyncoperation" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/ebaaa4d1-ffdb-4caf-89c5-47265c5512ab?api-version=2015-05-01-preview" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/ebaaa4d1-ffdb-4caf-89c5-47265c5512ab?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:41 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "108", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14970", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "5457f6b0-f00e-42d2-8b72-d71bd7fda0f0", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041742Z:5457f6b0-f00e-42d2-8b72-d71bd7fda0f0", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "cf6205ce-69cd-4a9d-97bb-8e2f515fb5bb", + "Body" : "{\"name\":\"ebaaa4d1-ffdb-4caf-89c5-47265c5512ab\",\"status\":\"InProgress\",\"startTime\":\"2018-03-10T04:17:41.223Z\"}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgrssdfw3eb7655012966cf/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/ebaaa4d1-ffdb-4caf-89c5-47265c5512ab?api-version=2015-05-01-preview", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (SqlManagementClient)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:57 GMT", + "server" : "Microsoft-HTTPAPI/2.0", + "content-length" : "107", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14969", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "8a5cafa0-75d4-4dbd-a7bc-1c19d3e2d8e1", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041758Z:8a5cafa0-75d4-4dbd-a7bc-1c19d3e2d8e1", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "abbee9d3-b1b3-49c8-8a56-b2f4fa2a0031", + "Body" : "{\"name\":\"ebaaa4d1-ffdb-4caf-89c5-47265c5512ab\",\"status\":\"Succeeded\",\"startTime\":\"2018-03-10T04:17:41.223Z\"}" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rgrssdfw3eb7655012966cf?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:58 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1190", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b4015372-4bf7-45fa-a9c8-eea602ff6977", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041759Z:b4015372-4bf7-45fa-a9c8-eea602ff6977", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "b4015372-4bf7-45fa-a9c8-eea602ff6977", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:17:58 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14968", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c047392a-f154-4db7-b873-1e3185d7a770", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041759Z:c047392a-f154-4db7-b873-1e3185d7a770", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "c047392a-f154-4db7-b873-1e3185d7a770", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:18:14 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14967", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0794fad4-ea4c-443f-9b93-99846eb3afe2", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041814Z:0794fad4-ea4c-443f-9b93-99846eb3afe2", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "0794fad4-ea4c-443f-9b93-99846eb3afe2", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:18:29 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14966", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "dcd05fbb-1e9f-4625-9bc6-f4afa1e51e9b", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041829Z:dcd05fbb-1e9f-4625-9bc6-f4afa1e51e9b", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "dcd05fbb-1e9f-4625-9bc6-f4afa1e51e9b", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:18:44 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14965", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b95c1d24-58ac-422b-816b-df7f6bc5001c", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041844Z:b95c1d24-58ac-422b-816b-df7f6bc5001c", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "b95c1d24-58ac-422b-816b-df7f6bc5001c", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:18:59 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14964", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "85b75bc8-72e1-429c-9e9c-1399aa5a0010", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041900Z:85b75bc8-72e1-429c-9e9c-1399aa5a0010", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "85b75bc8-72e1-429c-9e9c-1399aa5a0010", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:19:14 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14963", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "4970c845-5ca6-41ec-aa3b-e1a911492c35", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041915Z:4970c845-5ca6-41ec-aa3b-e1a911492c35", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "4970c845-5ca6-41ec-aa3b-e1a911492c35", + "Body" : "" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SR1JTU0RGVzNFQjc2NTUwMTI5NjZDRi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.3 MacAddressHash:7f697433f3aec09a608cc226ea9423c1f62133aad492acafffcabba7c2c0471a Java:1.8.0_102 (ResourceManagementClient, 2017-05-10)" + }, + "Response" : { + "date" : "Sat, 10 Mar 2018 04:19:29 GMT", + "content-length" : "0", + "expires" : "-1", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "14962", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "669f69e4-f117-4699-a253-641c63e43837", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20180310T041930Z:669f69e4-f117-4699-a253-641c63e43837", + "cache-control" : "no-cache", + "x-ms-request-id" : "669f69e4-f117-4699-a253-641c63e43837", + "Body" : "" + } + } ], + "variables" : [ "sqlservera49335291ee1ee", "rgrssdfw3eb7655012966cf", "vnetsqlf955928455", "58bbb2bd-6d0b-453d-a6a7-5f26b40a854e", "b4969cc9-f12b-4122-85c6-1d2a57526ba7", "0344cba2-b806-44cc-aa25-fd1f23ad5128", "f8745451-061b-4578-93b8-049aadf6a26b", "35909d4d-be6f-4310-ba4b-e18b248c4705", "357c10fe-ef5d-45b3-a75a-ade5215c2f0c", "cb7259a1-c164-484d-9c5c-3a42d76c8e99", "767770a7-dfec-4361-9a4b-b6379000321c" ] +} \ No newline at end of file