diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IInstanceFailoverGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IInstanceFailoverGroupsOperations.cs new file mode 100644 index 000000000000..279b7a0428c6 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IInstanceFailoverGroupsOperations.cs @@ -0,0 +1,350 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// InstanceFailoverGroupsOperations operations. + /// + public partial interface IInstanceFailoverGroupsOperations + { + /// + /// Gets a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the failover groups in a location. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Fails over from the current primary managed instance to this + /// managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> FailoverWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Fails over from the current primary managed instance to this + /// managed instance. This operation might result in data loss. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ForceFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Fails over from the current primary managed instance to this + /// managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Fails over from the current primary managed instance to this + /// managed instance. This operation might result in data loss. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginForceFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the failover groups in a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByLocationNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedDatabasesOperations.cs new file mode 100644 index 000000000000..d3e5c657a004 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedDatabasesOperations.cs @@ -0,0 +1,342 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ManagedDatabasesOperations operations. + /// + public partial interface IManagedDatabasesOperations + { + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task CompleteRestoreWithHttpMessagesAsync(string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of managed databases. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a managed database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new database or updates an existing database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the managed database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an existing database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginCompleteRestoreWithHttpMessagesAsync(string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new database or updates an existing database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the managed database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an existing database. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of managed databases. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedInstancesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedInstancesOperations.cs new file mode 100644 index 000000000000..ca73e258f610 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IManagedInstancesOperations.cs @@ -0,0 +1,309 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ManagedInstancesOperations operations. + /// + public partial interface IManagedInstancesOperations + { + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can + /// obtain this value from the Azure Resource Manager API or the + /// portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs index 0344bb3e5cf4..0fab1c9a7481 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -126,6 +126,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IGeoBackupPoliciesOperations GeoBackupPolicies { get; } + /// + /// Gets the IRecommendedElasticPoolsOperations. + /// + IRecommendedElasticPoolsOperations RecommendedElasticPools { get; } + /// /// Gets the IReplicationLinksOperations. /// @@ -156,11 +161,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IElasticPoolDatabaseActivitiesOperations ElasticPoolDatabaseActivities { get; } - /// - /// Gets the IRecommendedElasticPoolsOperations. - /// - IRecommendedElasticPoolsOperations RecommendedElasticPools { get; } - /// /// Gets the IServiceTierAdvisorsOperations. /// @@ -206,6 +206,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IFailoverGroupsOperations FailoverGroups { get; } + /// + /// Gets the IManagedInstancesOperations. + /// + IManagedInstancesOperations ManagedInstances { get; } + /// /// Gets the IOperations. /// @@ -251,6 +256,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IBackupLongTermRetentionPoliciesOperations BackupLongTermRetentionPolicies { get; } + /// + /// Gets the IManagedDatabasesOperations. + /// + IManagedDatabasesOperations ManagedDatabases { get; } + /// /// Gets the IServerAutomaticTuningOperations. /// @@ -276,5 +286,10 @@ public partial interface ISqlManagementClient : System.IDisposable /// IElasticPoolOperations ElasticPoolOperations { get; } + /// + /// Gets the IInstanceFailoverGroupsOperations. + /// + IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperations.cs new file mode 100644 index 000000000000..2596e4085a07 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperations.cs @@ -0,0 +1,1568 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// InstanceFailoverGroupsOperations operations. + /// + internal partial class InstanceFailoverGroupsOperations : IServiceOperations, IInstanceFailoverGroupsOperations + { + /// + /// Initializes a new instance of the InstanceFailoverGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal InstanceFailoverGroupsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-10-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByLocationWithHttpMessagesAsync(string resourceGroupName, string locationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-10-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("locationName", locationName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByLocation", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> FailoverWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ForceFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginForceFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-10-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a failover group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-10-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-10-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/failover").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginForceFailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string locationName, string failoverGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (failoverGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "failoverGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-10-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("locationName", locationName); + tracingParameters.Add("failoverGroupName", failoverGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginForceFailoverAllowDataLoss", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}/forceFailoverAllowDataLoss").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{failoverGroupName}", System.Uri.EscapeDataString(failoverGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByLocationNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByLocationNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperationsExtensions.cs new file mode 100644 index 000000000000..0b2a58258155 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/InstanceFailoverGroupsOperationsExtensions.cs @@ -0,0 +1,547 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for InstanceFailoverGroupsOperations. + /// + public static partial class InstanceFailoverGroupsOperationsExtensions + { + /// + /// Gets a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup Get(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.GetAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + public static InstanceFailoverGroup CreateOrUpdate(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, locationName, failoverGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static void Delete(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + operations.DeleteAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + public static IPage ListByLocation(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName) + { + return operations.ListByLocationAsync(resourceGroupName, locationName).GetAwaiter().GetResult(); + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByLocationAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByLocationWithHttpMessagesAsync(resourceGroupName, locationName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup Failover(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.FailoverAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task FailoverAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.FailoverWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup ForceFailoverAllowDataLoss(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.ForceFailoverAllowDataLossAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task ForceFailoverAllowDataLossAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ForceFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + public static InstanceFailoverGroup BeginCreateOrUpdate(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, locationName, failoverGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The failover group parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, InstanceFailoverGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static void BeginDelete(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + operations.BeginDeleteAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a failover group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup BeginFailover(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.BeginFailoverAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginFailoverAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + public static InstanceFailoverGroup BeginForceFailoverAllowDataLoss(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName) + { + return operations.BeginForceFailoverAllowDataLossAsync(resourceGroupName, locationName, failoverGroupName).GetAwaiter().GetResult(); + } + + /// + /// Fails over from the current primary managed instance to this managed + /// instance. This operation might result in data loss. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// The name of the failover group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginForceFailoverAllowDataLossAsync(this IInstanceFailoverGroupsOperations operations, string resourceGroupName, string locationName, string failoverGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginForceFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, locationName, failoverGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByLocationNext(this IInstanceFailoverGroupsOperations operations, string nextPageLink) + { + return operations.ListByLocationNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the failover groups in a location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByLocationNextAsync(this IInstanceFailoverGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByLocationNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperations.cs new file mode 100644 index 000000000000..4c1c231a2097 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperations.cs @@ -0,0 +1,1563 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ManagedDatabasesOperations operations. + /// + internal partial class ManagedDatabasesOperations : IServiceOperations, IManagedDatabasesOperations + { + /// + /// Initializes a new instance of the ManagedDatabasesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ManagedDatabasesOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task CompleteRestoreWithHttpMessagesAsync(string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCompleteRestoreWithHttpMessagesAsync(locationName, operationId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of managed databases. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstance", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a managed database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a new database or updates an existing database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the managed database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates an existing database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginCompleteRestoreWithHttpMessagesAsync(string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (locationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("locationName", locationName); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCompleteRestore", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/managedDatabaseRestoreAzureAsyncOperation/{operationId}/completeRestore").ToString(); + _url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName)); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(operationId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a new database or updates an existing database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the managed database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates an existing database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2017-03-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of managed databases. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByInstanceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperationsExtensions.cs new file mode 100644 index 000000000000..2322a35971c8 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedDatabasesOperationsExtensions.cs @@ -0,0 +1,541 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ManagedDatabasesOperations. + /// + public static partial class ManagedDatabasesOperationsExtensions + { + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + public static void CompleteRestore(this IManagedDatabasesOperations operations, string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters) + { + operations.CompleteRestoreAsync(locationName, operationId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// The cancellation token. + /// + public static async Task CompleteRestoreAsync(this IManagedDatabasesOperations operations, string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CompleteRestoreWithHttpMessagesAsync(locationName, operationId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of managed databases. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + public static IPage ListByInstance(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName) + { + return operations.ListByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of managed databases. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByInstanceAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + public static ManagedDatabase Get(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName) + { + return operations.GetAsync(resourceGroupName, managedInstanceName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a new database or updates an existing database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a new database or updates an existing database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + public static void Delete(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName) + { + operations.DeleteAsync(resourceGroupName, managedInstanceName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates an existing database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + public static ManagedDatabase Update(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an existing database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + public static void BeginCompleteRestore(this IManagedDatabasesOperations operations, string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters) + { + operations.BeginCompleteRestoreAsync(locationName, operationId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Completes the restore operation on a managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the region where the resource is located. + /// + /// + /// Management operation id that this request tries to complete. + /// + /// + /// The definition for completing the restore of this managed database. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCompleteRestoreAsync(this IManagedDatabasesOperations operations, string locationName, System.Guid operationId, CompleteDatabaseRestoreDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginCompleteRestoreWithHttpMessagesAsync(locationName, operationId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a new database or updates an existing database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a new database or updates an existing database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabase parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + public static void BeginDelete(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName) + { + operations.BeginDeleteAsync(resourceGroupName, managedInstanceName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the managed database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates an existing database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an existing database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The name of the database. + /// + /// + /// The requested database resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of managed databases. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByInstanceNext(this IManagedDatabasesOperations operations, string nextPageLink) + { + return operations.ListByInstanceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of managed databases. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByInstanceNextAsync(this IManagedDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperations.cs new file mode 100644 index 000000000000..855c4b147607 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperations.cs @@ -0,0 +1,1646 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ManagedInstancesOperations operations. + /// + internal partial class ManagedInstancesOperations : IServiceOperations, IManagedInstancesOperations + { + /// + /// Initializes a new instance of the ManagedInstancesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ManagedInstancesOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates a managed instance. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (managedInstanceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2015-05-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("managedInstanceName", managedInstanceName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperationsExtensions.cs new file mode 100644 index 000000000000..e714971cf255 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ManagedInstancesOperationsExtensions.cs @@ -0,0 +1,469 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ManagedInstancesOperations. + /// + public static partial class ManagedInstancesOperationsExtensions + { + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IManagedInstancesOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IManagedInstancesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + public static IPage ListByResourceGroup(this IManagedInstancesOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IManagedInstancesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + public static ManagedInstance Get(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName) + { + return operations.GetAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Gets a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + public static ManagedInstance CreateOrUpdate(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstance parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstance parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + public static void Delete(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName) + { + operations.DeleteAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + public static ManagedInstance Update(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + public static ManagedInstance BeginCreateOrUpdate(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstance parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstance parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + public static void BeginDelete(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName) + { + operations.BeginDeleteAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + public static ManagedInstance BeginUpdate(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, managedInstanceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a managed instance. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the managed instance. + /// + /// + /// The requested managed instance resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IManagedInstancesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of all managed instances in the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of managed instances in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CatalogCollationType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CatalogCollationType.cs new file mode 100644 index 000000000000..9f424cc32d9b --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CatalogCollationType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for CatalogCollationType. + /// + public static class CatalogCollationType + { + public const string DATABASEDEFAULT = "DATABASE_DEFAULT"; + public const string SQLLatin1GeneralCP1CIAS = "SQL_Latin1_General_CP1_CI_AS"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CompleteDatabaseRestoreDefinition.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CompleteDatabaseRestoreDefinition.cs new file mode 100644 index 000000000000..05f5cfcce6ef --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/CompleteDatabaseRestoreDefinition.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains the information necessary to perform a complete database + /// restore operation. + /// + public partial class CompleteDatabaseRestoreDefinition + { + /// + /// Initializes a new instance of the CompleteDatabaseRestoreDefinition + /// class. + /// + public CompleteDatabaseRestoreDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CompleteDatabaseRestoreDefinition + /// class. + /// + /// The last backup name to apply + public CompleteDatabaseRestoreDefinition(string lastBackupName) + { + LastBackupName = lastBackupName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the last backup name to apply + /// + [JsonProperty(PropertyName = "lastBackupName")] + public string LastBackupName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LastBackupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "LastBackupName"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroup.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroup.cs new file mode 100644 index 000000000000..19f2f6800532 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroup.cs @@ -0,0 +1,133 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An instance failover group. + /// + [Rest.Serialization.JsonTransformation] + public partial class InstanceFailoverGroup : ProxyResource + { + /// + /// Initializes a new instance of the InstanceFailoverGroup class. + /// + public InstanceFailoverGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InstanceFailoverGroup class. + /// + /// Read-write endpoint of the failover + /// group instance. + /// Partner region information for the + /// failover group. + /// List of managed instance pairs + /// in the failover group. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Read-only endpoint of the failover + /// group instance. + /// Local replication role of the + /// failover group instance. Possible values include: 'Primary', + /// 'Secondary' + /// Replication state of the failover + /// group instance. + public InstanceFailoverGroup(InstanceFailoverGroupReadWriteEndpoint readWriteEndpoint, IList partnerRegions, IList managedInstancePairs, string id = default(string), string name = default(string), string type = default(string), InstanceFailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(InstanceFailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string)) + : base(id, name, type) + { + ReadWriteEndpoint = readWriteEndpoint; + ReadOnlyEndpoint = readOnlyEndpoint; + ReplicationRole = replicationRole; + ReplicationState = replicationState; + PartnerRegions = partnerRegions; + ManagedInstancePairs = managedInstancePairs; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets read-write endpoint of the failover group instance. + /// + [JsonProperty(PropertyName = "properties.readWriteEndpoint")] + public InstanceFailoverGroupReadWriteEndpoint ReadWriteEndpoint { get; set; } + + /// + /// Gets or sets read-only endpoint of the failover group instance. + /// + [JsonProperty(PropertyName = "properties.readOnlyEndpoint")] + public InstanceFailoverGroupReadOnlyEndpoint ReadOnlyEndpoint { get; set; } + + /// + /// Gets local replication role of the failover group instance. + /// Possible values include: 'Primary', 'Secondary' + /// + [JsonProperty(PropertyName = "properties.replicationRole")] + public string ReplicationRole { get; private set; } + + /// + /// Gets replication state of the failover group instance. + /// + [JsonProperty(PropertyName = "properties.replicationState")] + public string ReplicationState { get; private set; } + + /// + /// Gets or sets partner region information for the failover group. + /// + [JsonProperty(PropertyName = "properties.partnerRegions")] + public IList PartnerRegions { get; set; } + + /// + /// Gets or sets list of managed instance pairs in the failover group. + /// + [JsonProperty(PropertyName = "properties.managedInstancePairs")] + public IList ManagedInstancePairs { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ReadWriteEndpoint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ReadWriteEndpoint"); + } + if (PartnerRegions == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PartnerRegions"); + } + if (ManagedInstancePairs == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ManagedInstancePairs"); + } + if (ReadWriteEndpoint != null) + { + ReadWriteEndpoint.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs new file mode 100644 index 000000000000..c3e7c22f98d0 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadOnlyEndpoint.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Read-only endpoint of the failover group instance. + /// + public partial class InstanceFailoverGroupReadOnlyEndpoint + { + /// + /// Initializes a new instance of the + /// InstanceFailoverGroupReadOnlyEndpoint class. + /// + public InstanceFailoverGroupReadOnlyEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InstanceFailoverGroupReadOnlyEndpoint class. + /// + /// Failover policy of the read-only + /// endpoint for the failover group. Possible values include: + /// 'Disabled', 'Enabled' + public InstanceFailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) + { + FailoverPolicy = failoverPolicy; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets failover policy of the read-only endpoint for the + /// failover group. Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "failoverPolicy")] + public string FailoverPolicy { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs new file mode 100644 index 000000000000..299752e7bf35 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReadWriteEndpoint.cs @@ -0,0 +1,86 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Read-write endpoint of the failover group instance. + /// + public partial class InstanceFailoverGroupReadWriteEndpoint + { + /// + /// Initializes a new instance of the + /// InstanceFailoverGroupReadWriteEndpoint class. + /// + public InstanceFailoverGroupReadWriteEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// InstanceFailoverGroupReadWriteEndpoint class. + /// + /// Failover policy of the read-write + /// endpoint for the failover group. If failoverPolicy is Automatic + /// then failoverWithDataLossGracePeriodMinutes is required. Possible + /// values include: 'Manual', 'Automatic' + /// Grace period + /// before failover with data loss is attempted for the read-write + /// endpoint. If failoverPolicy is Automatic then + /// failoverWithDataLossGracePeriodMinutes is required. + public InstanceFailoverGroupReadWriteEndpoint(string failoverPolicy, int? failoverWithDataLossGracePeriodMinutes = default(int?)) + { + FailoverPolicy = failoverPolicy; + FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets failover policy of the read-write endpoint for the + /// failover group. If failoverPolicy is Automatic then + /// failoverWithDataLossGracePeriodMinutes is required. Possible values + /// include: 'Manual', 'Automatic' + /// + [JsonProperty(PropertyName = "failoverPolicy")] + public string FailoverPolicy { get; set; } + + /// + /// Gets or sets grace period before failover with data loss is + /// attempted for the read-write endpoint. If failoverPolicy is + /// Automatic then failoverWithDataLossGracePeriodMinutes is required. + /// + [JsonProperty(PropertyName = "failoverWithDataLossGracePeriodMinutes")] + public int? FailoverWithDataLossGracePeriodMinutes { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (FailoverPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "FailoverPolicy"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReplicationRole.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReplicationRole.cs new file mode 100644 index 000000000000..cd4a463d4d89 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/InstanceFailoverGroupReplicationRole.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for InstanceFailoverGroupReplicationRole. + /// + public static class InstanceFailoverGroupReplicationRole + { + public const string Primary = "Primary"; + public const string Secondary = "Secondary"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabase.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabase.cs new file mode 100644 index 000000000000..8cb9f179dc92 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabase.cs @@ -0,0 +1,201 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A managed database resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagedDatabase : TrackedResource + { + /// + /// Initializes a new instance of the ManagedDatabase class. + /// + public ManagedDatabase() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedDatabase class. + /// + /// Resource location. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// Collation of the managed database. + /// Status for the database. Possible values + /// include: 'Online', 'Offline', 'Shutdown', 'Creating', + /// 'Inaccessible' + /// Creation date of the database. + /// Earliest restore point in time + /// for point in time restore. + /// Conditional. If createMode is + /// PointInTimeRestore, this value is required. Specifies the point in + /// time (ISO8601 format) of the source database that will be restored + /// to create the new database. + /// Geo paired region. + /// Collation of the metadata catalog. + /// Possible values include: 'DATABASE_DEFAULT', + /// 'SQL_Latin1_General_CP1_CI_AS' + /// Managed database create mode. + /// PointInTimeRestore: Create a database by restoring a point in time + /// backup of an existing database. SourceDatabaseName, + /// SourceManagedInstanceName and PointInTime must be specified. + /// RestoreExternalBackup: Create a database by restoring from external + /// backup files. Collation, StorageContainerUri and + /// StorageContainerSasToken must be specified. Possible values + /// include: 'Default', 'RestoreExternalBackup', + /// 'PointInTimeRestore' + /// Conditional. If createMode is + /// RestoreExternalBackup, this value is required. Specifies the uri of + /// the storage container where backups for this restore are + /// stored. + /// The resource identifier of the + /// source database associated with create operation of this + /// database. + /// Conditional. If createMode + /// is RestoreExternalBackup, this value is required. Specifies the + /// storage container sas token. + /// Instance Failover Group resource + /// identifier that this managed database belongs to. + public ManagedDatabase(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string)) + : base(location, id, name, type, tags) + { + Collation = collation; + Status = status; + CreationDate = creationDate; + EarliestRestorePoint = earliestRestorePoint; + RestorePointInTime = restorePointInTime; + DefaultSecondaryLocation = defaultSecondaryLocation; + CatalogCollation = catalogCollation; + CreateMode = createMode; + StorageContainerUri = storageContainerUri; + SourceDatabaseId = sourceDatabaseId; + StorageContainerSasToken = storageContainerSasToken; + FailoverGroupId = failoverGroupId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets collation of the managed database. + /// + [JsonProperty(PropertyName = "properties.collation")] + public string Collation { get; set; } + + /// + /// Gets status for the database. Possible values include: 'Online', + /// 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets creation date of the database. + /// + [JsonProperty(PropertyName = "properties.creationDate")] + public System.DateTime? CreationDate { get; private set; } + + /// + /// Gets earliest restore point in time for point in time restore. + /// + [JsonProperty(PropertyName = "properties.earliestRestorePoint")] + public System.DateTime? EarliestRestorePoint { get; private set; } + + /// + /// Gets or sets conditional. If createMode is PointInTimeRestore, this + /// value is required. Specifies the point in time (ISO8601 format) of + /// the source database that will be restored to create the new + /// database. + /// + [JsonProperty(PropertyName = "properties.restorePointInTime")] + public System.DateTime? RestorePointInTime { get; set; } + + /// + /// Gets geo paired region. + /// + [JsonProperty(PropertyName = "properties.defaultSecondaryLocation")] + public string DefaultSecondaryLocation { get; private set; } + + /// + /// Gets or sets collation of the metadata catalog. Possible values + /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' + /// + [JsonProperty(PropertyName = "properties.catalogCollation")] + public string CatalogCollation { get; set; } + + /// + /// Gets or sets managed database create mode. PointInTimeRestore: + /// Create a database by restoring a point in time backup of an + /// existing database. SourceDatabaseName, SourceManagedInstanceName + /// and PointInTime must be specified. RestoreExternalBackup: Create a + /// database by restoring from external backup files. Collation, + /// StorageContainerUri and StorageContainerSasToken must be specified. + /// Possible values include: 'Default', 'RestoreExternalBackup', + /// 'PointInTimeRestore' + /// + [JsonProperty(PropertyName = "properties.createMode")] + public string CreateMode { get; set; } + + /// + /// Gets or sets conditional. If createMode is RestoreExternalBackup, + /// this value is required. Specifies the uri of the storage container + /// where backups for this restore are stored. + /// + [JsonProperty(PropertyName = "properties.storageContainerUri")] + public string StorageContainerUri { get; set; } + + /// + /// Gets or sets the resource identifier of the source database + /// associated with create operation of this database. + /// + [JsonProperty(PropertyName = "properties.sourceDatabaseId")] + public string SourceDatabaseId { get; set; } + + /// + /// Gets or sets conditional. If createMode is RestoreExternalBackup, + /// this value is required. Specifies the storage container sas token. + /// + [JsonProperty(PropertyName = "properties.storageContainerSasToken")] + public string StorageContainerSasToken { get; set; } + + /// + /// Gets instance Failover Group resource identifier that this managed + /// database belongs to. + /// + [JsonProperty(PropertyName = "properties.failoverGroupId")] + public string FailoverGroupId { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseCreateMode.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseCreateMode.cs new file mode 100644 index 000000000000..e1ae53d2bfbd --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseCreateMode.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for ManagedDatabaseCreateMode. + /// + public static class ManagedDatabaseCreateMode + { + public const string Default = "Default"; + public const string RestoreExternalBackup = "RestoreExternalBackup"; + public const string PointInTimeRestore = "PointInTimeRestore"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseStatus.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseStatus.cs new file mode 100644 index 000000000000..7bb5997f1665 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseStatus.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for ManagedDatabaseStatus. + /// + public static class ManagedDatabaseStatus + { + public const string Online = "Online"; + public const string Offline = "Offline"; + public const string Shutdown = "Shutdown"; + public const string Creating = "Creating"; + public const string Inaccessible = "Inaccessible"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseUpdate.cs new file mode 100644 index 000000000000..a4aa043cb4d9 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedDatabaseUpdate.cs @@ -0,0 +1,193 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An managed database update. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagedDatabaseUpdate + { + /// + /// Initializes a new instance of the ManagedDatabaseUpdate class. + /// + public ManagedDatabaseUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedDatabaseUpdate class. + /// + /// Collation of the managed database. + /// Status for the database. Possible values + /// include: 'Online', 'Offline', 'Shutdown', 'Creating', + /// 'Inaccessible' + /// Creation date of the database. + /// Earliest restore point in time + /// for point in time restore. + /// Conditional. If createMode is + /// PointInTimeRestore, this value is required. Specifies the point in + /// time (ISO8601 format) of the source database that will be restored + /// to create the new database. + /// Geo paired region. + /// Collation of the metadata catalog. + /// Possible values include: 'DATABASE_DEFAULT', + /// 'SQL_Latin1_General_CP1_CI_AS' + /// Managed database create mode. + /// PointInTimeRestore: Create a database by restoring a point in time + /// backup of an existing database. SourceDatabaseName, + /// SourceManagedInstanceName and PointInTime must be specified. + /// RestoreExternalBackup: Create a database by restoring from external + /// backup files. Collation, StorageContainerUri and + /// StorageContainerSasToken must be specified. Possible values + /// include: 'Default', 'RestoreExternalBackup', + /// 'PointInTimeRestore' + /// Conditional. If createMode is + /// RestoreExternalBackup, this value is required. Specifies the uri of + /// the storage container where backups for this restore are + /// stored. + /// The resource identifier of the + /// source database associated with create operation of this + /// database. + /// Conditional. If createMode + /// is RestoreExternalBackup, this value is required. Specifies the + /// storage container sas token. + /// Instance Failover Group resource + /// identifier that this managed database belongs to. + /// Resource tags. + public ManagedDatabaseUpdate(string collation = default(string), string status = default(string), System.DateTime? creationDate = default(System.DateTime?), System.DateTime? earliestRestorePoint = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), string defaultSecondaryLocation = default(string), string catalogCollation = default(string), string createMode = default(string), string storageContainerUri = default(string), string sourceDatabaseId = default(string), string storageContainerSasToken = default(string), string failoverGroupId = default(string), IDictionary tags = default(IDictionary)) + { + Collation = collation; + Status = status; + CreationDate = creationDate; + EarliestRestorePoint = earliestRestorePoint; + RestorePointInTime = restorePointInTime; + DefaultSecondaryLocation = defaultSecondaryLocation; + CatalogCollation = catalogCollation; + CreateMode = createMode; + StorageContainerUri = storageContainerUri; + SourceDatabaseId = sourceDatabaseId; + StorageContainerSasToken = storageContainerSasToken; + FailoverGroupId = failoverGroupId; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets collation of the managed database. + /// + [JsonProperty(PropertyName = "properties.collation")] + public string Collation { get; set; } + + /// + /// Gets status for the database. Possible values include: 'Online', + /// 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + /// + [JsonProperty(PropertyName = "properties.status")] + public string Status { get; private set; } + + /// + /// Gets creation date of the database. + /// + [JsonProperty(PropertyName = "properties.creationDate")] + public System.DateTime? CreationDate { get; private set; } + + /// + /// Gets earliest restore point in time for point in time restore. + /// + [JsonProperty(PropertyName = "properties.earliestRestorePoint")] + public System.DateTime? EarliestRestorePoint { get; private set; } + + /// + /// Gets or sets conditional. If createMode is PointInTimeRestore, this + /// value is required. Specifies the point in time (ISO8601 format) of + /// the source database that will be restored to create the new + /// database. + /// + [JsonProperty(PropertyName = "properties.restorePointInTime")] + public System.DateTime? RestorePointInTime { get; set; } + + /// + /// Gets geo paired region. + /// + [JsonProperty(PropertyName = "properties.defaultSecondaryLocation")] + public string DefaultSecondaryLocation { get; private set; } + + /// + /// Gets or sets collation of the metadata catalog. Possible values + /// include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' + /// + [JsonProperty(PropertyName = "properties.catalogCollation")] + public string CatalogCollation { get; set; } + + /// + /// Gets or sets managed database create mode. PointInTimeRestore: + /// Create a database by restoring a point in time backup of an + /// existing database. SourceDatabaseName, SourceManagedInstanceName + /// and PointInTime must be specified. RestoreExternalBackup: Create a + /// database by restoring from external backup files. Collation, + /// StorageContainerUri and StorageContainerSasToken must be specified. + /// Possible values include: 'Default', 'RestoreExternalBackup', + /// 'PointInTimeRestore' + /// + [JsonProperty(PropertyName = "properties.createMode")] + public string CreateMode { get; set; } + + /// + /// Gets or sets conditional. If createMode is RestoreExternalBackup, + /// this value is required. Specifies the uri of the storage container + /// where backups for this restore are stored. + /// + [JsonProperty(PropertyName = "properties.storageContainerUri")] + public string StorageContainerUri { get; set; } + + /// + /// Gets or sets the resource identifier of the source database + /// associated with create operation of this database. + /// + [JsonProperty(PropertyName = "properties.sourceDatabaseId")] + public string SourceDatabaseId { get; set; } + + /// + /// Gets or sets conditional. If createMode is RestoreExternalBackup, + /// this value is required. Specifies the storage container sas token. + /// + [JsonProperty(PropertyName = "properties.storageContainerSasToken")] + public string StorageContainerSasToken { get; set; } + + /// + /// Gets instance Failover Group resource identifier that this managed + /// database belongs to. + /// + [JsonProperty(PropertyName = "properties.failoverGroupId")] + public string FailoverGroupId { get; private set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs new file mode 100644 index 000000000000..f930a236ee4d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs @@ -0,0 +1,161 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An Azure SQL managed instance. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagedInstance : TrackedResource + { + /// + /// Initializes a new instance of the ManagedInstance class. + /// + public ManagedInstance() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedInstance class. + /// + /// Resource location. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// The Azure Active Directory identity of the + /// managed instance. + /// Managed instance sku + /// The fully qualified domain + /// name of the managed instance. + /// Administrator username for the + /// managed instance. Can only be specified when the managed instance + /// is being created (and is required for creation). + /// The administrator login + /// password (required for managed instance creation). + /// Subnet resource ID for the managed + /// instance. + /// The state of the managed instance. + /// The license type. Possible values are + /// 'LicenseIncluded' and 'BasePrice'. + /// The number of VCores. + /// The maximum storage size in + /// GB. + public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?)) + : base(location, id, name, type, tags) + { + Identity = identity; + Sku = sku; + FullyQualifiedDomainName = fullyQualifiedDomainName; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + SubnetId = subnetId; + State = state; + LicenseType = licenseType; + VCores = vCores; + StorageSizeInGB = storageSizeInGB; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the Azure Active Directory identity of the managed + /// instance. + /// + [JsonProperty(PropertyName = "identity")] + public ResourceIdentity Identity { get; set; } + + /// + /// Gets or sets managed instance sku + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets the fully qualified domain name of the managed instance. + /// + [JsonProperty(PropertyName = "properties.fullyQualifiedDomainName")] + public string FullyQualifiedDomainName { get; private set; } + + /// + /// Gets or sets administrator username for the managed instance. Can + /// only be specified when the managed instance is being created (and + /// is required for creation). + /// + [JsonProperty(PropertyName = "properties.administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets the administrator login password (required for managed + /// instance creation). + /// + [JsonProperty(PropertyName = "properties.administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets subnet resource ID for the managed instance. + /// + [JsonProperty(PropertyName = "properties.subnetId")] + public string SubnetId { get; set; } + + /// + /// Gets the state of the managed instance. + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Gets or sets the license type. Possible values are + /// 'LicenseIncluded' and 'BasePrice'. + /// + [JsonProperty(PropertyName = "properties.licenseType")] + public string LicenseType { get; set; } + + /// + /// Gets or sets the number of VCores. + /// + [JsonProperty(PropertyName = "properties.vCores")] + public int? VCores { get; set; } + + /// + /// Gets or sets the maximum storage size in GB. + /// + [JsonProperty(PropertyName = "properties.storageSizeInGB")] + public int? StorageSizeInGB { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (Sku != null) + { + Sku.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstancePairInfo.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstancePairInfo.cs new file mode 100644 index 000000000000..833b26752737 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstancePairInfo.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Pairs of Managed Instances in the failover group. + /// + public partial class ManagedInstancePairInfo + { + /// + /// Initializes a new instance of the ManagedInstancePairInfo class. + /// + public ManagedInstancePairInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedInstancePairInfo class. + /// + /// Id of Primary Managed + /// Instance in pair. + /// Id of Partner Managed + /// Instance in pair. + public ManagedInstancePairInfo(string primaryManagedInstanceId = default(string), string partnerManagedInstanceId = default(string)) + { + PrimaryManagedInstanceId = primaryManagedInstanceId; + PartnerManagedInstanceId = partnerManagedInstanceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets id of Primary Managed Instance in pair. + /// + [JsonProperty(PropertyName = "primaryManagedInstanceId")] + public string PrimaryManagedInstanceId { get; set; } + + /// + /// Gets or sets id of Partner Managed Instance in pair. + /// + [JsonProperty(PropertyName = "partnerManagedInstanceId")] + public string PartnerManagedInstanceId { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs new file mode 100644 index 000000000000..7e64f6fff2f1 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs @@ -0,0 +1,152 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An update request for an Azure SQL Database managed instance. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagedInstanceUpdate + { + /// + /// Initializes a new instance of the ManagedInstanceUpdate class. + /// + public ManagedInstanceUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedInstanceUpdate class. + /// + /// Managed instance sku + /// The fully qualified domain + /// name of the managed instance. + /// Administrator username for the + /// managed instance. Can only be specified when the managed instance + /// is being created (and is required for creation). + /// The administrator login + /// password (required for managed instance creation). + /// Subnet resource ID for the managed + /// instance. + /// The state of the managed instance. + /// The license type. Possible values are + /// 'LicenseIncluded' and 'BasePrice'. + /// The number of VCores. + /// The maximum storage size in + /// GB. + /// Resource tags. + public ManagedInstanceUpdate(Sku sku = default(Sku), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), IDictionary tags = default(IDictionary)) + { + Sku = sku; + FullyQualifiedDomainName = fullyQualifiedDomainName; + AdministratorLogin = administratorLogin; + AdministratorLoginPassword = administratorLoginPassword; + SubnetId = subnetId; + State = state; + LicenseType = licenseType; + VCores = vCores; + StorageSizeInGB = storageSizeInGB; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets managed instance sku + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets the fully qualified domain name of the managed instance. + /// + [JsonProperty(PropertyName = "properties.fullyQualifiedDomainName")] + public string FullyQualifiedDomainName { get; private set; } + + /// + /// Gets or sets administrator username for the managed instance. Can + /// only be specified when the managed instance is being created (and + /// is required for creation). + /// + [JsonProperty(PropertyName = "properties.administratorLogin")] + public string AdministratorLogin { get; set; } + + /// + /// Gets or sets the administrator login password (required for managed + /// instance creation). + /// + [JsonProperty(PropertyName = "properties.administratorLoginPassword")] + public string AdministratorLoginPassword { get; set; } + + /// + /// Gets or sets subnet resource ID for the managed instance. + /// + [JsonProperty(PropertyName = "properties.subnetId")] + public string SubnetId { get; set; } + + /// + /// Gets the state of the managed instance. + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Gets or sets the license type. Possible values are + /// 'LicenseIncluded' and 'BasePrice'. + /// + [JsonProperty(PropertyName = "properties.licenseType")] + public string LicenseType { get; set; } + + /// + /// Gets or sets the number of VCores. + /// + [JsonProperty(PropertyName = "properties.vCores")] + public int? VCores { get; set; } + + /// + /// Gets or sets the maximum storage size in GB. + /// + [JsonProperty(PropertyName = "properties.storageSizeInGB")] + public int? StorageSizeInGB { get; set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Sku != null) + { + Sku.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerRegionInfo.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerRegionInfo.cs new file mode 100644 index 000000000000..4835389285ef --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/PartnerRegionInfo.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Partner region information for the failover group. + /// + public partial class PartnerRegionInfo + { + /// + /// Initializes a new instance of the PartnerRegionInfo class. + /// + public PartnerRegionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PartnerRegionInfo class. + /// + /// Geo location of the partner managed + /// instances. + /// Replication role of the partner + /// managed instances. Possible values include: 'Primary', + /// 'Secondary' + public PartnerRegionInfo(string location = default(string), string replicationRole = default(string)) + { + Location = location; + ReplicationRole = replicationRole; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets geo location of the partner managed instances. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets replication role of the partner managed instances. Possible + /// values include: 'Primary', 'Secondary' + /// + [JsonProperty(PropertyName = "replicationRole")] + public string ReplicationRole { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Sku.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Sku.cs new file mode 100644 index 000000000000..9dc67c29fcc4 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Sku.cs @@ -0,0 +1,102 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// An ARM Resource SKU. + /// + public partial class Sku + { + /// + /// Initializes a new instance of the Sku class. + /// + public Sku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Sku class. + /// + /// The name of the SKU, typically, a letter + + /// Number code, e.g. P3. + /// The tier of the particular SKU, e.g. Basic, + /// Premium. + /// Size of the particular SKU + /// If the service has different generations of + /// hardware, for the same SKU, then that can be captured here. + /// Capacity of the particular SKU. + public Sku(string name, string tier = default(string), string size = default(string), string family = default(string), int? capacity = default(int?)) + { + Name = name; + Tier = tier; + Size = size; + Family = family; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the SKU, typically, a letter + Number + /// code, e.g. P3. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the tier of the particular SKU, e.g. Basic, Premium. + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; set; } + + /// + /// Gets or sets size of the particular SKU + /// + [JsonProperty(PropertyName = "size")] + public string Size { get; set; } + + /// + /// Gets or sets if the service has different generations of hardware, + /// for the same SKU, then that can be captured here. + /// + [JsonProperty(PropertyName = "family")] + public string Family { get; set; } + + /// + /// Gets or sets capacity of the particular SKU. + /// + [JsonProperty(PropertyName = "capacity")] + public int? Capacity { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index 43df578aee1e..e00e947dff34 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs @@ -30,7 +30,10 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "FailoverGroups", "2015-05-01-preview"), new Tuple("Sql", "FirewallRules", "2014-04-01"), new Tuple("Sql", "GeoBackupPolicies", "2014-04-01"), + new Tuple("Sql", "InstanceFailoverGroups", "2017-10-01-preview"), new Tuple("Sql", "LongTermRetentionBackups", "2017-03-01-preview"), + new Tuple("Sql", "ManagedDatabases", "2017-03-01-preview"), + new Tuple("Sql", "ManagedInstances", "2015-05-01-preview"), new Tuple("Sql", "Operations", "2015-05-01-preview"), new Tuple("Sql", "RecommendedElasticPools", "2014-04-01"), new Tuple("Sql", "RecoverableDatabases", "2014-04-01"), diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index 16dfaac1a2a8..5f540eb7bef8 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -131,6 +131,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IGeoBackupPoliciesOperations GeoBackupPolicies { get; private set; } + /// + /// Gets the IRecommendedElasticPoolsOperations. + /// + public virtual IRecommendedElasticPoolsOperations RecommendedElasticPools { get; private set; } + /// /// Gets the IReplicationLinksOperations. /// @@ -161,11 +166,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IElasticPoolDatabaseActivitiesOperations ElasticPoolDatabaseActivities { get; private set; } - /// - /// Gets the IRecommendedElasticPoolsOperations. - /// - public virtual IRecommendedElasticPoolsOperations RecommendedElasticPools { get; private set; } - /// /// Gets the IServiceTierAdvisorsOperations. /// @@ -211,6 +211,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IFailoverGroupsOperations FailoverGroups { get; private set; } + /// + /// Gets the IManagedInstancesOperations. + /// + public virtual IManagedInstancesOperations ManagedInstances { get; private set; } + /// /// Gets the IOperations. /// @@ -256,6 +261,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IBackupLongTermRetentionPoliciesOperations BackupLongTermRetentionPolicies { get; private set; } + /// + /// Gets the IManagedDatabasesOperations. + /// + public virtual IManagedDatabasesOperations ManagedDatabases { get; private set; } + /// /// Gets the IServerAutomaticTuningOperations. /// @@ -281,6 +291,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IElasticPoolOperations ElasticPoolOperations { get; private set; } + /// + /// Gets the IInstanceFailoverGroupsOperations. + /// + public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// @@ -494,13 +509,13 @@ private void Initialize() ElasticPools = new ElasticPoolsOperations(this); FirewallRules = new FirewallRulesOperations(this); GeoBackupPolicies = new GeoBackupPoliciesOperations(this); + RecommendedElasticPools = new RecommendedElasticPoolsOperations(this); ReplicationLinks = new ReplicationLinksOperations(this); ServerAzureADAdministrators = new ServerAzureADAdministratorsOperations(this); ServerCommunicationLinks = new ServerCommunicationLinksOperations(this); ServiceObjectives = new ServiceObjectivesOperations(this); ElasticPoolActivities = new ElasticPoolActivitiesOperations(this); ElasticPoolDatabaseActivities = new ElasticPoolDatabaseActivitiesOperations(this); - RecommendedElasticPools = new RecommendedElasticPoolsOperations(this); ServiceTierAdvisors = new ServiceTierAdvisorsOperations(this); TransparentDataEncryptions = new TransparentDataEncryptionsOperations(this); TransparentDataEncryptionActivities = new TransparentDataEncryptionActivitiesOperations(this); @@ -510,6 +525,7 @@ private void Initialize() DatabaseAutomaticTuning = new DatabaseAutomaticTuningOperations(this); EncryptionProtectors = new EncryptionProtectorsOperations(this); FailoverGroups = new FailoverGroupsOperations(this); + ManagedInstances = new ManagedInstancesOperations(this); Operations = new Operations(this); ServerKeys = new ServerKeysOperations(this); SyncAgents = new SyncAgentsOperations(this); @@ -519,11 +535,13 @@ private void Initialize() VirtualNetworkRules = new VirtualNetworkRulesOperations(this); LongTermRetentionBackups = new LongTermRetentionBackupsOperations(this); BackupLongTermRetentionPolicies = new BackupLongTermRetentionPoliciesOperations(this); + ManagedDatabases = new ManagedDatabasesOperations(this); ServerAutomaticTuning = new ServerAutomaticTuningOperations(this); ServerDnsAliases = new ServerDnsAliasesOperations(this); RestorePoints = new RestorePointsOperations(this); DatabaseOperations = new DatabaseOperations(this); ElasticPoolOperations = new ElasticPoolOperations(this); + InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; diff --git a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj index dc80275b4ee0..992e25221a26 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -7,18 +7,12 @@ Microsoft.Azure.Management.Sql Azure SQL Management SDK library Microsoft.Azure.Management.Sql - 1.13.0-preview + 1.13.1-preview Microsoft Azure SQL Management;SQL;SQL Management; diff --git a/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs b/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs index 93401e0c44d4..1fa72077e978 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs @@ -22,7 +22,7 @@ [assembly: AssemblyTitle("Microsoft Azure SQL Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure SQL.")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.13.0.0")] +[assembly: AssemblyFileVersion("1.13.1.0")] diff --git a/src/SDKs/SqlManagement/Management.Sql/generate.ps1 b/src/SDKs/SqlManagement/Management.Sql/generate.ps1 new file mode 100644 index 000000000000..65cb5ffa0b9d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/generate.ps1 @@ -0,0 +1 @@ +powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File "$(split-path $SCRIPT:MyInvocation.MyCommand.Path -parent)\..\..\..\..\tools\generateTool.ps1" -ResourceProvider "sql/resource-manager" -PowershellInvoker -AutoRestVersion "latest" \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/InstanceFailoverGroupCrudScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/InstanceFailoverGroupCrudScenarioTests.cs new file mode 100644 index 000000000000..9f3471f648b6 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/InstanceFailoverGroupCrudScenarioTests.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Azure.Test.HttpRecorder; +using Microsoft.Rest.Azure; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Threading; +using Xunit; + +namespace Sql.Tests +{ + public class InstanceFailoverGroupCrudScenarioTests + { + [Fact] + public void TestCrudInstanceFailoverGroup() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + SqlManagementClient sqlClient = context.GetClient(); + + // Names of pre-existing ManagedInstances + string sourceManagedInstanceName = "tdstage-haimb-dont-delete-3"; + string targetManagedInstanceName = "threat-detection-test-1"; + string sourceResourceGroup = "testclrg"; + string targetResourceGroup = "testclrg"; + + // Create server + var sourceManagedInstance = sqlClient.ManagedInstances.Get(sourceResourceGroup, sourceManagedInstanceName); + + // Create second server + var targetManagedInstance = sqlClient.ManagedInstances.Get(targetResourceGroup, targetManagedInstanceName); + + // Create database only required parameters + string mdbName = "database1"; + var mdb1 = sqlClient.ManagedDatabases.CreateOrUpdate(sourceResourceGroup, sourceManagedInstance.Name, mdbName, new ManagedDatabase() + { + Location = sourceManagedInstance.Location, + }); + Assert.NotNull(mdb1); + + // Create a failover group + string instanceFailoverGroupName = SqlManagementTestUtilities.GenerateName(); + var fgInput = new InstanceFailoverGroup() + { + ReadOnlyEndpoint = new InstanceFailoverGroupReadOnlyEndpoint() + { + FailoverPolicy = ReadOnlyEndpointFailoverPolicy.Disabled, + }, + ReadWriteEndpoint = new InstanceFailoverGroupReadWriteEndpoint() + { + FailoverPolicy = ReadWriteEndpointFailoverPolicy.Manual, + }, + PartnerRegions = new List(){ + new PartnerRegionInfo() { Location = targetManagedInstance.Location }, + }, + ManagedInstancePairs = new List() + { + new ManagedInstancePairInfo() { PrimaryManagedInstanceId = sourceManagedInstance.Id, PartnerManagedInstanceId = targetManagedInstance.Id }, + }, + }; + var instanceFailoverGroup = sqlClient.InstanceFailoverGroups.CreateOrUpdate(sourceResourceGroup, sourceManagedInstance.Location, instanceFailoverGroupName, fgInput); + SqlManagementTestUtilities.ValidateInstanceFailoverGroup(fgInput, instanceFailoverGroup, instanceFailoverGroupName); + + var pePrimaryDatabase = sqlClient.ManagedDatabases.Get(sourceResourceGroup, sourceManagedInstance.Name, mdbName); + + // A brief wait may be needed until the secondary for the pre-existing database is created + ManagedDatabase peSecondaryDatabase = new ManagedDatabase(); + + SqlManagementTestUtilities.ExecuteWithRetry(() => + { + peSecondaryDatabase = sqlClient.ManagedDatabases.Get(targetResourceGroup, targetManagedInstance.Name, mdbName); + }, + TimeSpan.FromMinutes(2), TimeSpan.FromSeconds(5), + (CloudException e) => + { + return e.Response.StatusCode == HttpStatusCode.NotFound; + }); + + // Update a few settings + var fgSetInput = new InstanceFailoverGroup() + { + ReadOnlyEndpoint = new InstanceFailoverGroupReadOnlyEndpoint + { + FailoverPolicy = ReadOnlyEndpointFailoverPolicy.Enabled + }, + ReadWriteEndpoint = new InstanceFailoverGroupReadWriteEndpoint + { + FailoverPolicy = ReadWriteEndpointFailoverPolicy.Automatic, + FailoverWithDataLossGracePeriodMinutes = 120 + }, + PartnerRegions = new List(){ + new PartnerRegionInfo() { Location = instanceFailoverGroup.PartnerRegions.FirstOrDefault().Location }, + }, + ManagedInstancePairs = new List() + { + new ManagedInstancePairInfo() { PrimaryManagedInstanceId = instanceFailoverGroup.ManagedInstancePairs.FirstOrDefault().PrimaryManagedInstanceId, + PartnerManagedInstanceId = instanceFailoverGroup.ManagedInstancePairs.FirstOrDefault().PartnerManagedInstanceId }, + }, + }; + + var instanceFailoverGroupUpdated2 = sqlClient.InstanceFailoverGroups.CreateOrUpdate(sourceResourceGroup, sourceManagedInstance.Location, instanceFailoverGroupName, fgSetInput); + + // Set expectations and verify update + fgInput.ReadWriteEndpoint = fgSetInput.ReadWriteEndpoint; + fgInput.ReadOnlyEndpoint = fgSetInput.ReadOnlyEndpoint; + SqlManagementTestUtilities.ValidateInstanceFailoverGroup(fgInput, instanceFailoverGroupUpdated2, instanceFailoverGroupName); + + // Failover failover group + sqlClient.InstanceFailoverGroups.Failover(targetResourceGroup, targetManagedInstance.Location, instanceFailoverGroupName); + instanceFailoverGroup = sqlClient.InstanceFailoverGroups.Get(targetResourceGroup, targetManagedInstance.Location, instanceFailoverGroupName); + + // Get failover group on the new secondary server and verify its replication role + Assert.Equal(sourceManagedInstance.Id, instanceFailoverGroup.ManagedInstancePairs.FirstOrDefault().PartnerManagedInstanceId); + Assert.Equal(targetManagedInstance.Id, instanceFailoverGroup.ManagedInstancePairs.FirstOrDefault().PrimaryManagedInstanceId); + + // Delete failover group + sqlClient.InstanceFailoverGroups.Delete(targetResourceGroup, targetManagedInstance.Location, instanceFailoverGroupName); + Assert.Throws(() => sqlClient.InstanceFailoverGroups.Get(sourceResourceGroup, sourceManagedInstance.Location, instanceFailoverGroupName)); + + //Delete the managed database + sqlClient.ManagedDatabases.Delete(sourceResourceGroup, sourceManagedInstance.Name, mdbName); + sqlClient.ManagedDatabases.Delete(targetResourceGroup, targetManagedInstance.Name, mdbName); + } + } + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/ManagedDatabaseCrudScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/ManagedDatabaseCrudScenarioTests.cs new file mode 100644 index 000000000000..174863ea28b8 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/ManagedDatabaseCrudScenarioTests.cs @@ -0,0 +1,121 @@ + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Rest.Azure; +using System.Collections.Generic; +using System.Linq; +using Xunit; + +namespace Sql.Tests +{ + public class ManagedDatabaseCrudScenarioTests + { + [Fact] + public void TestCreateDropManagedDatabase() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + SqlManagementClient sqlClient = context.GetClient(); + + // Update with values from a current MI on the region + // + string resourceGroup = "testclrg"; + string managedInstanceName = "tdstage-haimb-dont-delete-3"; + + //Get MI + var managedInstance = sqlClient.ManagedInstances.Get(resourceGroup, managedInstanceName); + + Dictionary tags = new Dictionary() + { + { "tagKey1", "TagValue1" } + }; + + // Create database only required parameters + // + string mdbName = SqlManagementTestUtilities.GenerateName(); + var mdb1 = sqlClient.ManagedDatabases.CreateOrUpdate(resourceGroup, managedInstance.Name, mdbName, new ManagedDatabase() + { + Location = managedInstance.Location, + }); + Assert.NotNull(mdb1); + + // Create a database with all parameters specified + // + mdbName = SqlManagementTestUtilities.GenerateName(); + var mdb2Input = new ManagedDatabase() + { + Location = managedInstance.Location, + Collation = SqlTestConstants.DefaultCollation, + Tags = tags, + CreateMode = "Default" + }; + var mdb2 = sqlClient.ManagedDatabases.CreateOrUpdate(resourceGroup, managedInstance.Name, mdbName, mdb2Input); + Assert.NotNull(mdb2); + SqlManagementTestUtilities.ValidateManagedDatabase(mdb2Input, mdb2, mdbName); + + sqlClient.ManagedDatabases.Delete(resourceGroup, managedInstance.Name, mdb1.Name); + sqlClient.ManagedDatabases.Delete(resourceGroup, managedInstance.Name, mdb2.Name); + } + } + + [Fact] + public void TestGetAndListManagedDatabase() + { + string testPrefix = "sqlcrudtest-"; + + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + SqlManagementClient sqlClient = context.GetClient(); + + // Update with values from a current MI on the region + // + string resourceGroup = "testclrg"; + string managedInstanceName = "tdstage-haimb-dont-delete-3"; + + // Get MI + var managedInstance = sqlClient.ManagedInstances.Get(resourceGroup, managedInstanceName); + + // Create some small databases to run the get/List tests on. + ManagedDatabase[] mngdDatabases = SqlManagementTestUtilities.CreateManagedDatabasesAsync( + sqlClient, resourceGroup, managedInstance, testPrefix, 4).Result; + + // Organize into a dictionary for better lookup later + IDictionary inputs = mngdDatabases.ToDictionary( + keySelector: d => d.Name, + elementSelector: d => d); + + // Get each database and compare to the results of create database + // + foreach (var db in inputs) + { + var response = sqlClient.ManagedDatabases.Get(resourceGroup, managedInstance.Name, db.Key); + SqlManagementTestUtilities.ValidateManagedDatabaseEx(db.Value, response); + } + + // List all databases + // + var listResponse = sqlClient.ManagedDatabases.ListByInstance(resourceGroup, managedInstance.Name); + + // Check that all created Managed Databases are created + foreach (var db in inputs.Keys) + { + var actualDbList = listResponse.Where(d => d.Name.Equals(db)); + Assert.True(actualDbList.Count() == 1); + ManagedDatabase actualDb = actualDbList.FirstOrDefault(); + SqlManagementTestUtilities.ValidateManagedDatabase(inputs[db], actualDb, db); + } + + foreach (var db in inputs.Keys) + { + sqlClient.ManagedDatabases.Delete(resourceGroup, managedInstance.Name, db); + } + + } + } + } +} diff --git a/src/SDKs/SqlManagement/Sql.Tests/ManagedInstanceCrudScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/ManagedInstanceCrudScenarioTests.cs new file mode 100644 index 000000000000..47a93bfa4eb4 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/ManagedInstanceCrudScenarioTests.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using System.Collections.Generic; +using System.Linq; +using Xunit; + +namespace Sql.Tests +{ + public class ManagedInstanceCrudScenarioTests + { + [Fact] + public void TestCreateUpdateGetDropManagedInstance() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + SqlManagementClient sqlClient = context.GetClient(); + + string managedInstanceName = "sqlcl-crudtests-dotnetsdk1"; + string login = "dummylogin"; + string password = "Un53cuRE!"; + Dictionary tags = new Dictionary() + { + { "tagKey1", "TagValue1" } + }; + + Microsoft.Azure.Management.Sql.Models.Sku sku = new Microsoft.Azure.Management.Sql.Models.Sku(); + sku.Name = "MIGP8G4"; + sku.Tier = "GeneralPurpose"; + + string subnetId = "/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default"; + string location = "southeastasia"; + + //Create server + var managedInstance1 = sqlClient.ManagedInstances.CreateOrUpdate(resourceGroup.Name, managedInstanceName, new ManagedInstance() + { + AdministratorLogin = login, + AdministratorLoginPassword = password, + Sku = sku, + SubnetId = subnetId, + Tags = tags, + Location = location, + }); + SqlManagementTestUtilities.ValidateManagedInstance(managedInstance1, managedInstanceName, login, tags, TestEnvironmentUtilities.DefaultLocationId); + + // Create second server + string managedInstanceName2 = "sqlcl-crudtests-dotnetsdk2"; + var managedInstance2 = sqlClient.ManagedInstances.CreateOrUpdate(resourceGroup.Name, managedInstanceName2, new ManagedInstance() + { + AdministratorLogin = login, + AdministratorLoginPassword = password, + Sku = sku, + SubnetId = subnetId, + Tags = tags, + Location = location, + }); + SqlManagementTestUtilities.ValidateManagedInstance(managedInstance2, managedInstanceName2, login, tags, TestEnvironmentUtilities.DefaultLocationId); + + // Get first server + var getMI1 = sqlClient.ManagedInstances.Get(resourceGroup.Name, managedInstanceName); + SqlManagementTestUtilities.ValidateManagedInstance(getMI1, managedInstanceName, login, tags, TestEnvironmentUtilities.DefaultLocationId); + + // Get second server + var getMI2 = sqlClient.ManagedInstances.Get(resourceGroup.Name, managedInstanceName2); + SqlManagementTestUtilities.ValidateManagedInstance(getMI2, managedInstanceName2, login, tags, TestEnvironmentUtilities.DefaultLocationId); + + var listMI = sqlClient.ManagedInstances.ListByResourceGroup(resourceGroup.Name); + Assert.Equal(2, listMI.Count()); + + // Update first server + Dictionary newTags = new Dictionary() + { + { "asdf", "zxcv" } + }; + var updateMI1 = sqlClient.ManagedInstances.Update(resourceGroup.Name, managedInstanceName, new ManagedInstanceUpdate { Tags = newTags }); + SqlManagementTestUtilities.ValidateManagedInstance(updateMI1, managedInstanceName, login, newTags, TestEnvironmentUtilities.DefaultLocationId); + + // Drop server, update count + sqlClient.ManagedInstances.Delete(resourceGroup.Name, managedInstanceName); + + var listMI2 = sqlClient.ManagedInstances.ListByResourceGroup(resourceGroup.Name); + Assert.Equal(1, listMI2.Count()); + + sqlClient.ManagedInstances.Delete(resourceGroup.Name, managedInstanceName2); + var listMI3 = sqlClient.ManagedInstances.ListByResourceGroup(resourceGroup.Name); + Assert.Empty(listMI3); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.InstanceFailoverGroupCrudScenarioTests/TestCrudInstanceFailoverGroup.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.InstanceFailoverGroupCrudScenarioTests/TestCrudInstanceFailoverGroup.json new file mode 100644 index 000000000000..92cde51d5e9f --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.InstanceFailoverGroupCrudScenarioTests/TestCrudInstanceFailoverGroup.json @@ -0,0 +1,4882 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "377c41a2-d147-4171-90fa-b8924286bb16" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"principalId\": \"f79f4324-01db-4944-99b4-8ebc895eda1f\",\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"f435658b-a8c3-4460-adf2-84617caef396\"\r\n },\r\n \"sku\": {\r\n \"name\": \"CLS3\",\r\n \"tier\": \"Standard\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"tdstage-haimb-dont-delete-3.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 1,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"name\": \"tdstage-haimb-dont-delete-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:22:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b5fe9f57-dd7a-4a51-9a35-d3c20c08c23f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "2da4923e-1d96-4260-a931-e69578111a98" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152256Z:2da4923e-1d96-4260-a931-e69578111a98" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGhyZWF0LWRldGVjdGlvbi10ZXN0LTE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "094ebb48-909b-4c64-b606-c6d9f2ff24f2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 8\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"threat-detection-test-1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 8,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\",\r\n \"name\": \"threat-detection-test-1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:22:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9e4e248c-9f66-45e9-b95f-6158fda086d3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "06f1079a-54a5-458e-b822-d34b563c30cd" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152257Z:06f1079a-54a5-458e-b822-d34b563c30cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9kYXRhYmFzZTE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "439a112a-1d0b-43da-b46f-f88a1de22ddc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:22:58.833Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:22:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/93a7f5d1-4323-45d4-b4ee-59402a23adba?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/93a7f5d1-4323-45d4-b4ee-59402a23adba?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "93a7f5d1-4323-45d4-b4ee-59402a23adba" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d51f56bc-161e-4fe7-8fd6-4b01fba04a44" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152259Z:d51f56bc-161e-4fe7-8fd6-4b01fba04a44" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/93a7f5d1-4323-45d4-b4ee-59402a23adba?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTNhN2Y1ZDEtNDMyMy00NWQ0LWI0ZWUtNTk0MDJhMjNhZGJhP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"93a7f5d1-4323-45d4-b4ee-59402a23adba\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:22:58.833Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9da5b92f-23a1-4e76-83ed-dbd73089bf6f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "66ca2fe0-fddc-43ca-bf60-e41a3144ceff" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152314Z:66ca2fe0-fddc-43ca-bf60-e41a3144ceff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9kYXRhYmFzZTE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:22:59.037Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1\",\r\n \"name\": \"database1\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d8bc2e48-60e9-4704-b2df-06f3c6504588" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "c288c294-2215-4b30-8245-1fcdb845ad6a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152315Z:c288c294-2215-4b30-8245-1fcdb845ad6a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9kYXRhYmFzZTE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6f255e40-6933-405c-95f4-3d43867eeb52" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:22:59.037Z\",\r\n \"earliestRestorePoint\": \"2018-04-18T15:26:28.79Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1\",\r\n \"name\": \"database1\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8fcb807d-190a-4176-8ad2-1536e70af001" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "e7ab9f22-7b54-4f65-b616-92949b9ac035" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153149Z:e7ab9f22-7b54-4f65-b616-92949b9ac035" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Manual\"\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Disabled\"\r\n },\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"southeastasia\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "678" + ], + "x-ms-client-request-id": [ + "60e961ce-aa4b-4e47-8bda-fa04596087cf" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedFailoverGroup\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "79" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "c913c3f0-a296-4853-ba54-edcdee8cba5a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "ea268fa8-fb97-4e01-9c06-e8d12283c4d9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152317Z:ea268fa8-fb97-4e01-9c06-e8d12283c4d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Automatic\",\r\n \"failoverWithDataLossGracePeriodMinutes\": 120\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Enabled\"\r\n },\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "735" + ], + "x-ms-client-request-id": [ + "851b2529-57c1-4a3c-8f29-eda27a36c51e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateManagedFailoverGroup\",\r\n \"startTime\": \"2018-04-18T15:31:50.49Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "80" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/e5b70610-e2b3-4b56-a04f-bff39ed9572b?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/e5b70610-e2b3-4b56-a04f-bff39ed9572b?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "e5b70610-e2b3-4b56-a04f-bff39ed9572b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "8efdf4c4-bf22-4f5f-a18f-95fe55203a6c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153152Z:8efdf4c4-bf22-4f5f-a18f-95fe55203a6c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ad18ac50-8ebe-46fd-a11c-366fa9a77da9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "4e4018cb-9bb2-48cb-ac41-578c26bd049e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152328Z:4e4018cb-9bb2-48cb-ac41-578c26bd049e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "06e6b725-6521-489d-bea7-11ec2fd2d470" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "ae900711-a551-4b1c-9928-099619c00c66" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152338Z:ae900711-a551-4b1c-9928-099619c00c66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c30f1b0c-03ad-4c56-93d8-cd4fa13c5e14" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "b60a4c26-6802-490d-bac6-c41fb2a462a5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152348Z:b60a4c26-6802-490d-bac6-c41fb2a462a5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:23:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "009a6c71-85db-4f35-9534-2f77d2a50e6c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "e63f7da4-3ab6-405c-bb99-74777f12a729" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152359Z:e63f7da4-3ab6-405c-bb99-74777f12a729" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:24:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0ffb991c-a24c-49d6-9bda-bc5ed2457f76" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "d5f250cf-19d8-40fe-87a6-47e23a4cb525" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152409Z:d5f250cf-19d8-40fe-87a6-47e23a4cb525" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:24:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "12" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0aa871a3-ceea-4140-aba0-6ed01dcde5c5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "f41b63f4-a4fb-4d1e-a052-014eb74f159f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152419Z:f41b63f4-a4fb-4d1e-a052-014eb74f159f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:24:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a1fea6bf-ac48-4f60-852a-51c189a82703" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "2b78561b-b7de-48cf-bd58-43e4f96e906a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152432Z:2b78561b-b7de-48cf-bd58-43e4f96e906a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:24:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "18" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "06806a95-dab9-4334-8a3b-e9d7153afc7f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "89d95a51-4012-46a7-aba5-a16bc37ccc1c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152448Z:89d95a51-4012-46a7-aba5-a16bc37ccc1c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:25:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "22" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d6823e15-7465-48c4-b0e6-8d56a30bf12e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "bd01109c-4211-4126-8a7e-e3e4798e6e01" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152507Z:bd01109c-4211-4126-8a7e-e3e4798e6e01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:25:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "26" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "289b0141-fba9-4f71-921e-57d8dd03a692" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "3a247d29-6b0b-4f6b-8f25-e197c5dadd59" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152529Z:3a247d29-6b0b-4f6b-8f25-e197c5dadd59" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:25:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "31" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "af2c3f20-af83-4922-9dc6-d6b9e9db4d2d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "9978bee2-525f-45f6-926c-7fe9bd392f10" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152555Z:9978bee2-525f-45f6-926c-7fe9bd392f10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:26:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "38" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "186ff2c4-3aba-4f6c-a78a-10fd65646078" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "8dd7f830-1bce-4ecb-b804-14051d0a6486" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152627Z:8dd7f830-1bce-4ecb-b804-14051d0a6486" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:27:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "45" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dd72046a-f1d3-4ee9-b448-9bec0f018e77" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "d808eaf6-9759-4ad2-bb3f-2175f1d223dd" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152705Z:d808eaf6-9759-4ad2-bb3f-2175f1d223dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:27:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "54" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "80712c3f-d724-46cf-9950-0567579062ac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "f96c85ff-6330-42c3-adf7-45b75da61b8a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152750Z:f96c85ff-6330-42c3-adf7-45b75da61b8a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:28:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7b1b297f-4614-4c70-95e4-c3781f394582" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "d4a9c7ba-c0b5-488e-b81c-e7d24d9b17e4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152845Z:d4a9c7ba-c0b5-488e-b81c-e7d24d9b17e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:29:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1ad4a7d4-bcb1-42f5-936e-ee17a30829b3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "2fab60c6-b5e3-4bac-904c-7820e9a47379" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T152946Z:2fab60c6-b5e3-4bac-904c-7820e9a47379" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:30:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6db1daca-5c26-43e3-9721-8b4df0b3a9d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "db95094e-5104-4f2b-805c-406688301f51" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153046Z:db95094e-5104-4f2b-805c-406688301f51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/c913c3f0-a296-4853-ba54-edcdee8cba5a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vYzkxM2MzZjAtYTI5Ni00ODUzLWJhNTQtZWRjZGVlOGNiYTVhP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c913c3f0-a296-4853-ba54-edcdee8cba5a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:23:16.2Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7e1185c5-47f4-44aa-96fd-23fe08ae0768" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "f54022c7-9d1c-49e6-b45a-ad2a336685ee" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153147Z:f54022c7-9d1c-49e6-b45a-ad2a336685ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Manual\"\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Disabled\"\r\n },\r\n \"replicationRole\": \"Primary\",\r\n \"replicationState\": \"CATCH_UP\",\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"replicationRole\": \"Secondary\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/Southeast Asia/instanceFailoverGroups/sqlcrudtest-5522\",\r\n \"name\": \"sqlcrudtest-5522\",\r\n \"type\": \"Microsoft.Sql/locations/instanceFailoverGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a9aa78bc-f101-469e-a613-cb7adf3b8018" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "4c44374c-d7cf-433a-8b7a-1d9a9fa17c0d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153148Z:4c44374c-d7cf-433a-8b7a-1d9a9fa17c0d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Automatic\",\r\n \"failoverWithDataLossGracePeriodMinutes\": 120\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Enabled\"\r\n },\r\n \"replicationRole\": \"Primary\",\r\n \"replicationState\": \"CATCH_UP\",\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"replicationRole\": \"Secondary\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/Southeast Asia/instanceFailoverGroups/sqlcrudtest-5522\",\r\n \"name\": \"sqlcrudtest-5522\",\r\n \"type\": \"Microsoft.Sql/locations/instanceFailoverGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9ab04e8e-fc14-4bd3-b851-141532e5a14f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "7552037c-fcc1-4b28-a3e8-77a7026fdfdc" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153203Z:7552037c-fcc1-4b28-a3e8-77a7026fdfdc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58bdee1c-fca6-4e79-8de0-a6b8be97711c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Automatic\",\r\n \"failoverWithDataLossGracePeriodMinutes\": 120\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Enabled\"\r\n },\r\n \"replicationRole\": \"Primary\",\r\n \"replicationState\": \"CATCH_UP\",\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"replicationRole\": \"Secondary\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/Southeast Asia/instanceFailoverGroups/sqlcrudtest-5522\",\r\n \"name\": \"sqlcrudtest-5522\",\r\n \"type\": \"Microsoft.Sql/locations/instanceFailoverGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9228c9f0-3ae7-4d90-b161-654f0f8241b1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14947" + ], + "x-ms-correlation-request-id": [ + "9a483f13-003e-4eff-938e-dfa3fa4ea9d9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154847Z:9a483f13-003e-4eff-938e-dfa3fa4ea9d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3dffbbf9-4e93-4e43-8dc9-47751d3b3980" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The requested resource of type 'Microsoft.Sql/locations/instanceFailoverGroups' with name 'sqlcrudtest-5522' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "6441d565-56ed-49d9-ac62-6ed740aaf2e6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-correlation-request-id": [ + "637ff6c5-de13-41d0-8167-5c7ad7464136" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154910Z:637ff6c5-de13-41d0-8167-5c7ad7464136" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGhyZWF0LWRldGVjdGlvbi10ZXN0LTEvZGF0YWJhc2VzL2RhdGFiYXNlMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c6979405-0342-4e07-9e6c-63fdb3f76e78" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:23:40.293Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1/databases/database1\",\r\n \"name\": \"database1\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:31:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a4f408a2-a3a0-46d3-80d1-91d5f7b973a4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "de7e9a56-9697-4ec9-8467-5612d7b099d2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153149Z:de7e9a56-9697-4ec9-8467-5612d7b099d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/e5b70610-e2b3-4b56-a04f-bff39ed9572b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZTViNzA2MTAtZTJiMy00YjU2LWEwNGYtYmZmMzllZDk1NzJiP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5b70610-e2b3-4b56-a04f-bff39ed9572b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:31:50.49Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d23ee29b-0bb6-42c7-92d6-02e9201b8e90" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "ef60b9bd-7c96-46cb-a7ee-c26c5a1620ae" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153202Z:ef60b9bd-7c96-46cb-a7ee-c26c5a1620ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522/failover?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMi9mYWlsb3Zlcj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21d3e016-6d32-40b7-9b26-a8d389600b4c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"FailoverFailoverGroup\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "f2438255-e542-49fd-94f9-c3e3503c5c3f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "9ab6012b-c582-42c5-ae9f-15c610d455c8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153205Z:9ab6012b-c582-42c5-ae9f-15c610d455c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b04e900a-c380-4c1e-a308-64432f31d9f0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "d2bf058b-22a2-4916-8ec9-d379af915b7c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153215Z:d2bf058b-22a2-4916-8ec9-d379af915b7c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cb78d992-4183-4fbb-a095-842df1143ea9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "c41987ba-c7bc-4376-b52f-be6ce4af21df" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153225Z:c41987ba-c7bc-4376-b52f-be6ce4af21df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a71fca75-592e-48fd-8d1c-f0e07d5f1341" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "0951c4be-aabc-4a7d-a949-34396c713f2f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153236Z:0951c4be-aabc-4a7d-a949-34396c713f2f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6afb0609-f2e1-4779-bbd2-331e7ee2a5ca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "e19a8edb-3d31-4c88-beac-81ec5c6899b7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153246Z:e19a8edb-3d31-4c88-beac-81ec5c6899b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:32:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5579ba77-0eb8-458b-a2c4-017f2fa53fbb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "6d8a47f1-7304-441e-9e0b-1eeead725b6d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153256Z:6d8a47f1-7304-441e-9e0b-1eeead725b6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:33:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "12" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6a54dc4b-afec-4ae9-940f-05457844a5ba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "42d2e1dd-234c-4be2-ba3f-fcc55a2fd65e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153307Z:42d2e1dd-234c-4be2-ba3f-fcc55a2fd65e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:33:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a72d3771-d3a9-4863-ad14-58c2543c6daa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "e5a82d7d-9a53-4352-b0ef-e9f894fc7037" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153319Z:e5a82d7d-9a53-4352-b0ef-e9f894fc7037" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:33:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "18" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5872c9fa-659d-4f8e-b573-e233b7abea42" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "7d82f853-08f2-40cc-8093-f169949383ff" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153335Z:7d82f853-08f2-40cc-8093-f169949383ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:33:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "22" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c75993dd-bd5c-4eb2-b167-b718c2c03a20" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "6bdeb9e5-de12-4909-9d9d-8f482bdcd426" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153353Z:6bdeb9e5-de12-4909-9d9d-8f482bdcd426" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:34:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "26" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e8c7be1e-477f-4540-bee4-38e336dbec56" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "e7b565e4-5cd0-4f82-9a1a-9cbf1c40cb58" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153416Z:e7b565e4-5cd0-4f82-9a1a-9cbf1c40cb58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:34:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "31" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "adf5289a-b7c4-4429-a957-00c25c9f82bd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "b0fa52c4-ada6-4c6f-b3a6-33810f466511" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153442Z:b0fa52c4-ada6-4c6f-b3a6-33810f466511" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:35:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "38" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "24b927fb-bf71-419f-aeb9-783911756b8d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "45d6171d-bc5a-40a0-b5ad-10f15ba674c0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153514Z:45d6171d-bc5a-40a0-b5ad-10f15ba674c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:35:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "45" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ef556baf-ac5d-47d7-87b7-4266f27b3b74" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "8c2b24f6-8566-4062-9783-77bf20597a79" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153553Z:8c2b24f6-8566-4062-9783-77bf20597a79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:36:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "55" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "281cebfc-ed86-42c8-b275-059257067d3c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "653a2eee-83a8-4cd5-8ecc-2314d33e1c17" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153639Z:653a2eee-83a8-4cd5-8ecc-2314d33e1c17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:37:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c1bec15-b0a9-4f60-bdd7-048875f70bea" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-correlation-request-id": [ + "11df9434-ce2c-4910-991e-5597db0e455e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153734Z:11df9434-ce2c-4910-991e-5597db0e455e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:38:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0fa06699-f2bf-4f7c-9560-f551e08d3856" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14957" + ], + "x-ms-correlation-request-id": [ + "7f4bf5d1-033e-450c-bd41-06e00ce66d19" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153834Z:7f4bf5d1-033e-450c-bd41-06e00ce66d19" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:39:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ef05d456-f27f-4916-9347-6f1bd0dd1ca8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "6001513e-a41e-4f37-bbd2-a0c784934431" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T153936Z:6001513e-a41e-4f37-bbd2-a0c784934431" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:40:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a7c4bfb1-8389-47f0-aeda-d510dadd27b9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-correlation-request-id": [ + "1ddbb566-af0d-4be6-acb0-1ad633580bed" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154040Z:1ddbb566-af0d-4be6-acb0-1ad633580bed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:41:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c56de73-36cf-4370-b3ca-cd8ca547e4a6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-correlation-request-id": [ + "384faf91-a5e8-481a-8c25-5e7a4a42f9b7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154141Z:384faf91-a5e8-481a-8c25-5e7a4a42f9b7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:42:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2f61f4bc-7f3a-4338-91c0-6c4205b73dac" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-correlation-request-id": [ + "99438b0c-6d14-4366-9f03-5782a9343cb4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154241Z:99438b0c-6d14-4366-9f03-5782a9343cb4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:43:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5973d298-bf80-4217-b9f9-a6054da77bc2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-correlation-request-id": [ + "1e3824ab-994a-44cb-9c7d-050ccad89165" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154342Z:1e3824ab-994a-44cb-9c7d-050ccad89165" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:44:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f57630db-4ac9-405e-ab40-3a0b00fb610a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14953" + ], + "x-ms-correlation-request-id": [ + "5a733e0b-b4d0-4414-9798-f16d5853aff4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154443Z:5a733e0b-b4d0-4414-9798-f16d5853aff4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:45:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a5f3742b-33dc-4b17-ab73-ea012dcbaed2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14952" + ], + "x-ms-correlation-request-id": [ + "7e45abaa-66f7-4fd0-8a4a-2786b83922fa" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154543Z:7e45abaa-66f7-4fd0-8a4a-2786b83922fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:46:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d91f9eaf-0f7d-4a5e-9293-0a0cad33cae6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14951" + ], + "x-ms-correlation-request-id": [ + "91a42408-7dd0-4594-a86d-4cf4cf3c6a93" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154644Z:91a42408-7dd0-4594-a86d-4cf4cf3c6a93" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:47:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "876ef702-6566-4269-b98c-bc33af70d481" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14950" + ], + "x-ms-correlation-request-id": [ + "70a14f0c-9705-4d4a-baad-add902481151" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154745Z:70a14f0c-9705-4d4a-baad-add902481151" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f2438255-e542-49fd-94f9-c3e3503c5c3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:32:03.717Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2412d02e-430d-4267-bb2a-eaaf3fdd9641" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14949" + ], + "x-ms-correlation-request-id": [ + "0685d829-b8d5-4f09-82af-bffcc5d81424" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154846Z:0685d829-b8d5-4f09-82af-bffcc5d81424" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/f2438255-e542-49fd-94f9-c3e3503c5c3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cE9wZXJhdGlvblJlc3VsdHMvZjI0MzgyNTUtZTU0Mi00OWZkLTk0ZjktYzNlMzUwM2M1YzNmP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"readWriteEndpoint\": {\r\n \"failoverPolicy\": \"Automatic\",\r\n \"failoverWithDataLossGracePeriodMinutes\": 120\r\n },\r\n \"readOnlyEndpoint\": {\r\n \"failoverPolicy\": \"Enabled\"\r\n },\r\n \"replicationRole\": \"Primary\",\r\n \"replicationState\": \"CATCH_UP\",\r\n \"partnerRegions\": [\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"replicationRole\": \"Secondary\"\r\n }\r\n ],\r\n \"managedInstancePairs\": [\r\n {\r\n \"primaryManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1\",\r\n \"partnerManagedInstanceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/Southeast Asia/instanceFailoverGroups/sqlcrudtest-5522\",\r\n \"name\": \"sqlcrudtest-5522\",\r\n \"type\": \"Microsoft.Sql/locations/instanceFailoverGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2236b480-9b6f-48fc-8ba3-9d9f9ab4fec9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14948" + ], + "x-ms-correlation-request-id": [ + "1b9816de-4fd4-4840-bfb1-b929cb18a50b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154846Z:1b9816de-4fd4-4840-bfb1-b929cb18a50b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroups/sqlcrudtest-5522?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cHMvc3FsY3J1ZHRlc3QtNTUyMj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4391482d-c942-44fc-8d67-caa53343615b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedFailoverGroup\",\r\n \"startTime\": \"2018-04-18T15:48:48.117Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "79" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "8785d555-16ef-4715-b023-dc0667229f86" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "5ad1d5a6-95b3-4e64-a591-d0e13b550f97" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154849Z:5ad1d5a6-95b3-4e64-a591-d0e13b550f97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vODc4NWQ1NTUtMTZlZi00NzE1LWIwMjMtZGMwNjY3MjI5Zjg2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8785d555-16ef-4715-b023-dc0667229f86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:48:48.117Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:48:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eb408327-d764-405c-9e25-2d63fa9b7360" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14946" + ], + "x-ms-correlation-request-id": [ + "078518d2-71a8-4fdb-b1e5-b74b53da74b9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154859Z:078518d2-71a8-4fdb-b1e5-b74b53da74b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupAzureAsyncOperation/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cEF6dXJlQXN5bmNPcGVyYXRpb24vODc4NWQ1NTUtMTZlZi00NzE1LWIwMjMtZGMwNjY3MjI5Zjg2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8785d555-16ef-4715-b023-dc0667229f86\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:48:48.117Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "10" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ca251d5b-8798-47d4-8109-52b53a51318a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14945" + ], + "x-ms-correlation-request-id": [ + "18875dd2-44d7-4904-9273-a3c69297a3ef" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154910Z:18875dd2-44d7-4904-9273-a3c69297a3ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/instanceFailoverGroupOperationResults/8785d555-16ef-4715-b023-dc0667229f86?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2luc3RhbmNlRmFpbG92ZXJHcm91cE9wZXJhdGlvblJlc3VsdHMvODc4NWQ1NTUtMTZlZi00NzE1LWIwMjMtZGMwNjY3MjI5Zjg2P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "73684811-6294-4f0b-b6fd-cb5fb1ae1fe1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-correlation-request-id": [ + "2805e8b7-02c8-4298-9aa1-ddb028c91029" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154910Z:2805e8b7-02c8-4298-9aa1-ddb028c91029" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9kYXRhYmFzZTE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "59ee2d08-a2dd-42b0-a50b-f7270c186007" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:49:11.88Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/0db52da5-ea59-4490-9538-b971b56c3514?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/0db52da5-ea59-4490-9538-b971b56c3514?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "0db52da5-ea59-4490-9538-b971b56c3514" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "8032f6c5-2292-41de-bb58-3210ee8df113" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154912Z:8032f6c5-2292-41de-bb58-3210ee8df113" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/0db52da5-ea59-4490-9538-b971b56c3514?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMGRiNTJkYTUtZWE1OS00NDkwLTk1MzgtYjk3MWI1NmMzNTE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"0db52da5-ea59-4490-9538-b971b56c3514\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:49:11.88Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c224d02f-e102-4e21-a2fb-7a89ec301a9e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14942" + ], + "x-ms-correlation-request-id": [ + "6c845689-9e99-4897-9917-38a819e4a1af" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154927Z:6c845689-9e99-4897-9917-38a819e4a1af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/0db52da5-ea59-4490-9538-b971b56c3514?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvMGRiNTJkYTUtZWE1OS00NDkwLTk1MzgtYjk3MWI1NmMzNTE0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9f29d425-0172-451a-b9b8-5675e0211131" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "80a9c66c-bcd0-4d91-a06b-3faff84471d3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154928Z:80a9c66c-bcd0-4d91-a06b-3faff84471d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/threat-detection-test-1/databases/database1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGhyZWF0LWRldGVjdGlvbi10ZXN0LTEvZGF0YWJhc2VzL2RhdGFiYXNlMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "91d294ed-05f5-45e1-9810-87fc0fceccfb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "f3b5f9dc-f6a6-448b-bc04-c993ea149dc1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "c2410584-62eb-489c-aabc-ce2e991d007b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154929Z:c2410584-62eb-489c-aabc-ce2e991d007b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "85f80c64-a069-47ee-9484-15eef6e34a89" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14940" + ], + "x-ms-correlation-request-id": [ + "a66539c3-c87c-4438-8763-02f9a182efbf" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T154944Z:a66539c3-c87c-4438-8763-02f9a182efbf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:49:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ce1824db-8332-4285-986d-d87bda8f606b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14939" + ], + "x-ms-correlation-request-id": [ + "21307f49-5887-4592-aa20-d637fe49fbba" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155000Z:21307f49-5887-4592-aa20-d637fe49fbba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:50:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8c4e2c63-0025-452c-9b07-97ccd0333884" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14938" + ], + "x-ms-correlation-request-id": [ + "6ae94c69-0ff6-4d4e-bb47-458e5d3bc4c2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155015Z:6ae94c69-0ff6-4d4e-bb47-458e5d3bc4c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:50:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "387d07dd-9e47-4c70-afe3-9562255fadc1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14937" + ], + "x-ms-correlation-request-id": [ + "5d62d4d9-a77e-4b5b-b50b-24efc27a0011" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155031Z:5d62d4d9-a77e-4b5b-b50b-24efc27a0011" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:50:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "93dcf3ca-3ac0-4e2e-a464-64f7fedafcaa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14936" + ], + "x-ms-correlation-request-id": [ + "e9fb05c9-1fc8-464d-a434-843d05775448" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155046Z:e9fb05c9-1fc8-464d-a434-843d05775448" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:51:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cff8c6cd-7d09-47dd-8549-4f9294035e5e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14935" + ], + "x-ms-correlation-request-id": [ + "28857a64-dd26-4707-92b5-647993837332" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155101Z:28857a64-dd26-4707-92b5-647993837332" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:51:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "456fe203-2430-44db-90e9-3fa618f53bc8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14934" + ], + "x-ms-correlation-request-id": [ + "d7495c4f-b3bc-4459-bae7-5460c78cbe3a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155117Z:d7495c4f-b3bc-4459-bae7-5460c78cbe3a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:51:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a2a3b6c7-9b85-460d-b43f-156d5484eb1c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14933" + ], + "x-ms-correlation-request-id": [ + "90760f38-7179-4fb3-8c2f-b10464620540" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155134Z:90760f38-7179-4fb3-8c2f-b10464620540" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:51:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69de6882-2524-48a2-ab2e-a21cec40a8c3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14932" + ], + "x-ms-correlation-request-id": [ + "5c2737c0-2363-4b2f-b6f8-48a3c7aeb99d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155149Z:5c2737c0-2363-4b2f-b6f8-48a3c7aeb99d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"f3b5f9dc-f6a6-448b-bc04-c993ea149dc1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:49:28.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "423a08a6-1bca-43fc-9541-fa99f73b3c93" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14931" + ], + "x-ms-correlation-request-id": [ + "f896e8c0-0672-4f09-9334-d68d388f8217" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155205Z:f896e8c0-0672-4f09-9334-d68d388f8217" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/f3b5f9dc-f6a6-448b-bc04-c993ea149dc1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvZjNiNWY5ZGMtZjZhNi00NDhiLWJjMDQtYzk5M2VhMTQ5ZGMxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "78762747-471f-473b-87d6-21a2bac3a284" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14930" + ], + "x-ms-correlation-request-id": [ + "dec0b1f5-79a2-4296-be0e-96863c4d0691" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155205Z:dec0b1f5-79a2-4296-be0e-96863c4d0691" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "TestCrudInstanceFailoverGroup": [ + "sqlcrudtest-5522" + ] + }, + "Variables": { + "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestCreateDropManagedDatabase.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestCreateDropManagedDatabase.json new file mode 100644 index 000000000000..7fb411f4b920 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestCreateDropManagedDatabase.json @@ -0,0 +1,2901 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "96edc8fb-d511-4e1a-a422-965ff5e1d3fe" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"principalId\": \"f79f4324-01db-4944-99b4-8ebc895eda1f\",\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"f435658b-a8c3-4460-adf2-84617caef396\"\r\n },\r\n \"sku\": {\r\n \"name\": \"CLS3\",\r\n \"tier\": \"Standard\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"tdstage-haimb-dont-delete-3.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 1,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"name\": \"tdstage-haimb-dont-delete-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "97faf81b-7223-4daa-9da0-b6a356aff887" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-correlation-request-id": [ + "f8e5aaeb-6a59-4968-bcc9-61b935cf4bd7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161136Z:f8e5aaeb-6a59-4968-bcc9-61b935cf4bd7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-1129?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "84b0d2bc-e6b4-4965-b4ed-542e52e393f2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:11:38.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/38982289-8687-4c85-84ba-831d1e4c07e0?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/38982289-8687-4c85-84ba-831d1e4c07e0?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "38982289-8687-4c85-84ba-831d1e4c07e0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "1bd5f185-e460-4cb8-840c-17b65d132a47" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161138Z:1bd5f185-e460-4cb8-840c-17b65d132a47" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/38982289-8687-4c85-84ba-831d1e4c07e0?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzg5ODIyODktODY4Ny00Yzg1LTg0YmEtODMxZDFlNGMwN2UwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"38982289-8687-4c85-84ba-831d1e4c07e0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:11:38.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "56d1033f-d4f2-4b2f-931e-704f1973568c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-correlation-request-id": [ + "94bb6386-36c2-41cd-a2bf-12502290c5c8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161153Z:94bb6386-36c2-41cd-a2bf-12502290c5c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-1129?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T16:11:38.34Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-1129\",\r\n \"name\": \"sqlcrudtest-1129\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "73b4ac8e-4ea3-4e35-a5a8-6d787f0dd7cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14953" + ], + "x-ms-correlation-request-id": [ + "5bb4f1b4-544b-474e-85bb-0bccb1bcf1e3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161154Z:5bb4f1b4-544b-474e-85bb-0bccb1bcf1e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-927?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05Mjc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"createMode\": \"Default\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "186" + ], + "x-ms-client-request-id": [ + "0cbd8c88-f028-4469-b1f8-aa0b93b89c8b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:11:56.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e4032d10-e5c8-4905-aade-7ad992191339?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e4032d10-e5c8-4905-aade-7ad992191339?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "e4032d10-e5c8-4905-aade-7ad992191339" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "9dae82fd-08a3-4637-a395-d6a9cd7b36ef" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161156Z:9dae82fd-08a3-4637-a395-d6a9cd7b36ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e4032d10-e5c8-4905-aade-7ad992191339?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTQwMzJkMTAtZTVjOC00OTA1LWFhZGUtN2FkOTkyMTkxMzM5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e4032d10-e5c8-4905-aade-7ad992191339\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:11:56.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "02cc4778-fafb-413e-84fc-1761344c4810" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14952" + ], + "x-ms-correlation-request-id": [ + "111e804c-1704-47ca-bcff-950ba5e21f2b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161211Z:111e804c-1704-47ca-bcff-950ba5e21f2b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-927?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05Mjc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T16:11:56.567Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-927\",\r\n \"name\": \"sqlcrudtest-927\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "933a8b1a-8e14-4e42-bc27-42900d525e49" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14951" + ], + "x-ms-correlation-request-id": [ + "12222935-86ac-4b55-a8bd-6f9c0328bc5b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161212Z:12222935-86ac-4b55-a8bd-6f9c0328bc5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-1129?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI5P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f3c0d491-b800-4e8e-936b-1b0a67fde011" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "100c5c86-2d23-4cc9-80ae-55db0242a5bf" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "8c7cb108-0141-478c-826b-5480e96b468e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161212Z:8c7cb108-0141-478c-826b-5480e96b468e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "841cd523-b0dc-4ca0-b720-96a56ee6b0da" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14950" + ], + "x-ms-correlation-request-id": [ + "992a070e-55ab-4547-af19-660738222bc5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161228Z:992a070e-55ab-4547-af19-660738222bc5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2b6eefb5-1577-481c-aa9a-9d0813a2f361" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14949" + ], + "x-ms-correlation-request-id": [ + "b03fffad-7311-4099-b6c5-d5cc1722e9c0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161244Z:b03fffad-7311-4099-b6c5-d5cc1722e9c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:12:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d3e87834-a48f-46a7-bbe7-3477c34bac59" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14948" + ], + "x-ms-correlation-request-id": [ + "37ea831d-261f-4556-9330-25dbc452b8a2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161259Z:37ea831d-261f-4556-9330-25dbc452b8a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:13:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "247edbd8-9c54-4c44-8b84-049016e1307d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14947" + ], + "x-ms-correlation-request-id": [ + "f6d91045-fdaf-4b58-8a8a-18d64bddb23a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161314Z:f6d91045-fdaf-4b58-8a8a-18d64bddb23a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:13:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8dad3f63-1bbd-4560-a530-6e798d74f8d3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14946" + ], + "x-ms-correlation-request-id": [ + "ca695bfa-c55a-4b16-a98e-347f13d15e21" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161330Z:ca695bfa-c55a-4b16-a98e-347f13d15e21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:13:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "61f159e6-64e4-40ec-8d81-638db787a9a0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14945" + ], + "x-ms-correlation-request-id": [ + "cd3533bb-88ca-42fc-b749-a2fb7a3dd84e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161345Z:cd3533bb-88ca-42fc-b749-a2fb7a3dd84e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:14:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6ec2cb39-042c-4e5a-8961-159202644c79" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14944" + ], + "x-ms-correlation-request-id": [ + "77bf32ef-0b05-418c-800e-04b97ebcdab2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161401Z:77bf32ef-0b05-418c-800e-04b97ebcdab2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:14:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1c184dfc-2170-40f3-9add-ebaf36ec7927" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14943" + ], + "x-ms-correlation-request-id": [ + "741b1d7a-6582-4df3-8f7b-b0db9d3cba62" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161417Z:741b1d7a-6582-4df3-8f7b-b0db9d3cba62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:14:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "26c12010-587e-49e7-b18f-14cdfbeca173" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14942" + ], + "x-ms-correlation-request-id": [ + "dac1ffcc-7bf3-433d-9326-29b9e69b2c07" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161432Z:dac1ffcc-7bf3-433d-9326-29b9e69b2c07" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:14:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e47984a7-61b2-415d-beaa-ef88c9adf131" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14941" + ], + "x-ms-correlation-request-id": [ + "aedf5a6f-5098-46e6-98e9-a6b463827b87" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161448Z:aedf5a6f-5098-46e6-98e9-a6b463827b87" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:15:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "269645df-d8e7-4e69-a441-06d60521c2ea" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14940" + ], + "x-ms-correlation-request-id": [ + "3bba8eac-afa9-4764-a59f-3dd072f8250a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161503Z:3bba8eac-afa9-4764-a59f-3dd072f8250a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:15:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d9fd3764-f5b4-4606-8e6a-4d74baab2670" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14939" + ], + "x-ms-correlation-request-id": [ + "b6e17572-95d9-4b5c-8ab9-1afa16d478e4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161518Z:b6e17572-95d9-4b5c-8ab9-1afa16d478e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:15:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "934ccefc-f9c4-4084-ac7a-020592c2d3d9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14938" + ], + "x-ms-correlation-request-id": [ + "e87b4ed3-e3b4-4fd1-a53f-b0caae36b60b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161534Z:e87b4ed3-e3b4-4fd1-a53f-b0caae36b60b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:15:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "94cee7e1-63fd-4f4b-aedf-f87c29ee7327" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14937" + ], + "x-ms-correlation-request-id": [ + "57f318f1-518d-4e91-b8db-bfc733f7af8c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161549Z:57f318f1-518d-4e91-b8db-bfc733f7af8c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:16:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0cbc3aff-5292-477b-a59d-5da02ff59ee6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14936" + ], + "x-ms-correlation-request-id": [ + "ecb369af-6d9c-477b-aa87-cd608f6f61f9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161604Z:ecb369af-6d9c-477b-aa87-cd608f6f61f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:16:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e9789dcf-e129-44d7-92b7-664377bacd95" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14935" + ], + "x-ms-correlation-request-id": [ + "441d2b36-0ff2-406b-b561-0373380b7c79" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161620Z:441d2b36-0ff2-406b-b561-0373380b7c79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:16:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "20786825-5983-4ec2-b312-fa56dec1b7c4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14934" + ], + "x-ms-correlation-request-id": [ + "6d83d445-a316-45c6-8604-ee312736d7bb" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161636Z:6d83d445-a316-45c6-8604-ee312736d7bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:16:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4e3ec4bb-2fff-4b4e-9012-f1bc9990aec7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14933" + ], + "x-ms-correlation-request-id": [ + "39319058-a33f-475c-8464-a7f4d6c51361" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161651Z:39319058-a33f-475c-8464-a7f4d6c51361" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"100c5c86-2d23-4cc9-80ae-55db0242a5bf\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:12:12.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "55844f02-0e86-4395-be1a-f2f6d357178f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14932" + ], + "x-ms-correlation-request-id": [ + "be5660b3-a854-4cba-a01c-20dee8f4ddf8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161707Z:be5660b3-a854-4cba-a01c-20dee8f4ddf8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/100c5c86-2d23-4cc9-80ae-55db0242a5bf?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvMTAwYzVjODYtMmQyMy00Y2M5LTgwYWUtNTVkYjAyNDJhNWJmP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "99a8a6c7-7951-43d8-b4ce-4e94df355faf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14931" + ], + "x-ms-correlation-request-id": [ + "07168d3e-3af1-41c6-aa9a-d77184289521" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161707Z:07168d3e-3af1-41c6-aa9a-d77184289521" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-927?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05Mjc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "057f14e4-6ffc-490d-8713-da683838f22a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "7df614d1-c990-40a9-8d9b-8cb9c1b3f158" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "fcdd662d-3a0f-4002-9f87-59ccbb9c7cbe" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161708Z:fcdd662d-3a0f-4002-9f87-59ccbb9c7cbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7894fe4d-8af3-43d9-a918-0651246794d6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14930" + ], + "x-ms-correlation-request-id": [ + "92ee67a7-32c1-42a3-80d5-6406b2036645" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161723Z:92ee67a7-32c1-42a3-80d5-6406b2036645" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9a66cc5f-228b-4603-b25e-7ef3c6a7c4bb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14929" + ], + "x-ms-correlation-request-id": [ + "bcaf332c-7d79-4b04-9e40-92bf655bee39" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161739Z:bcaf332c-7d79-4b04-9e40-92bf655bee39" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:17:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7b1edfef-fd09-4b12-a9a8-4ed47684dbfa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14928" + ], + "x-ms-correlation-request-id": [ + "ecac646c-6823-431d-9496-b7357ea833a0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161755Z:ecac646c-6823-431d-9496-b7357ea833a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:18:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eeadc7c3-9fef-4c11-a8c1-984da3d7f694" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-correlation-request-id": [ + "7c3c2225-2a3b-4262-bec2-e30e2d6940e7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161810Z:7c3c2225-2a3b-4262-bec2-e30e2d6940e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:18:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c194365b-24c1-4c74-96af-784b32f9fce6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14926" + ], + "x-ms-correlation-request-id": [ + "9a1f248f-83fc-446c-851b-7eb4d4f5f093" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161826Z:9a1f248f-83fc-446c-851b-7eb4d4f5f093" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:18:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "019750e2-8b3f-46db-a51e-1aaecf2da40f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14925" + ], + "x-ms-correlation-request-id": [ + "e56b9056-4716-4ae1-9ff5-0b5814afd9f3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161841Z:e56b9056-4716-4ae1-9ff5-0b5814afd9f3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:18:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "da589e4b-2018-4d44-b137-f2ccf158cdb5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14924" + ], + "x-ms-correlation-request-id": [ + "ca0cda17-b9a5-4f40-ad20-32be94601177" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161856Z:ca0cda17-b9a5-4f40-ad20-32be94601177" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:19:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5937103f-1d37-4d8e-a507-5e9f5a2c884a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14923" + ], + "x-ms-correlation-request-id": [ + "85da0454-b57a-499c-b24c-b1819e206df2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161912Z:85da0454-b57a-499c-b24c-b1819e206df2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:19:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e5578eed-2609-44bd-82cc-8abb526750ca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14922" + ], + "x-ms-correlation-request-id": [ + "6dbdcc43-2aa6-469c-af82-38af8684fd43" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161927Z:6dbdcc43-2aa6-469c-af82-38af8684fd43" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:19:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a8a710a1-3dc0-4d22-aec0-342d56f8eb59" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14921" + ], + "x-ms-correlation-request-id": [ + "cf766b36-2398-4cee-a77e-6309892ea685" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161943Z:cf766b36-2398-4cee-a77e-6309892ea685" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:19:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1e7aa170-54f3-4a6a-b92c-e0e9cf57e435" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14920" + ], + "x-ms-correlation-request-id": [ + "0b348519-6363-4152-8a3d-c079048e434c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161958Z:0b348519-6363-4152-8a3d-c079048e434c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:20:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fc36fa8f-a9e3-4a3d-afc5-0e184eadb560" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14921" + ], + "x-ms-correlation-request-id": [ + "5bd79961-b8a2-4e49-ad71-f230af2f79b6" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162014Z:5bd79961-b8a2-4e49-ad71-f230af2f79b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:20:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "549e303a-a234-456c-bfac-ede75c2717ec" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14920" + ], + "x-ms-correlation-request-id": [ + "6631f453-7a67-49ea-9b75-7b09eb0bf9ae" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162029Z:6631f453-7a67-49ea-9b75-7b09eb0bf9ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:20:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fdfbb1e8-42f1-4273-8cef-c4144f2a8ec3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14919" + ], + "x-ms-correlation-request-id": [ + "88dc57ae-a2e9-4a88-a65f-f66015246101" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162044Z:88dc57ae-a2e9-4a88-a65f-f66015246101" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:20:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a3d7354e-9131-4877-b101-c3c116303a3b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14918" + ], + "x-ms-correlation-request-id": [ + "5461a47e-52a1-4158-94eb-b50ff4c5975b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162100Z:5461a47e-52a1-4158-94eb-b50ff4c5975b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:21:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "76e0a1b9-c60f-4664-b00c-6081a017e10c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14917" + ], + "x-ms-correlation-request-id": [ + "d0e235b0-8b26-456c-82a1-ba051183450b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162115Z:d0e235b0-8b26-456c-82a1-ba051183450b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7df614d1-c990-40a9-8d9b-8cb9c1b3f158\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:17:08.473Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:21:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cff563b1-ca23-423a-a1de-3107195a5b1e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14916" + ], + "x-ms-correlation-request-id": [ + "f6ee046d-5fc8-494c-976d-5554de585a5a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162131Z:f6ee046d-5fc8-494c-976d-5554de585a5a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/7df614d1-c990-40a9-8d9b-8cb9c1b3f158?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvN2RmNjE0ZDEtYzk5MC00MGE5LThkOWItOGNiOWMxYjNmMTU4P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:21:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "de32d3cb-e8c9-482e-b7ae-1afa1b214e5d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14915" + ], + "x-ms-correlation-request-id": [ + "12f1cb96-182b-4149-bbbe-bdd697c20700" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T162132Z:12f1cb96-182b-4149-bbbe-bdd697c20700" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "TestCreateDropManagedDatabase": [ + "sqlcrudtest-1129", + "sqlcrudtest-927" + ] + }, + "Variables": { + "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestGetAndListManagedDatabase.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestGetAndListManagedDatabase.json new file mode 100644 index 000000000000..197141b60e87 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedDatabaseCrudScenarioTests/TestGetAndListManagedDatabase.json @@ -0,0 +1,5986 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4eb9712-fed8-4374-b95c-e32624ec3d4f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"principalId\": \"f79f4324-01db-4944-99b4-8ebc895eda1f\",\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"f435658b-a8c3-4460-adf2-84617caef396\"\r\n },\r\n \"sku\": {\r\n \"name\": \"CLS3\",\r\n \"tier\": \"Standard\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"tdstage-haimb-dont-delete-3.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 1,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3\",\r\n \"name\": \"tdstage-haimb-dont-delete-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9c97c4a0-71bf-4848-b72e-3b27546fef97" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "0de7d3f6-37d9-416d-9731-90f6d0ec54b8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155241Z:0de7d3f6-37d9-416d-9731-90f6d0ec54b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "d9f8c487-649a-4ae0-9895-b3cf09f9990b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:52:43.867Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/c384dd7a-97bd-495f-a09d-af641c99901e?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/c384dd7a-97bd-495f-a09d-af641c99901e?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "c384dd7a-97bd-495f-a09d-af641c99901e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "2a6d4f5c-5b7d-4b0c-94fd-63cc292aea2c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155244Z:2a6d4f5c-5b7d-4b0c-94fd-63cc292aea2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NjgyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "e0cc16f1-d9a9-477f-b99e-bf072be0149f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:52:44.343Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/94dd6ffa-0097-4860-8055-1006b7c1e032?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/94dd6ffa-0097-4860-8055-1006b7c1e032?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "94dd6ffa-0097-4860-8055-1006b7c1e032" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "f6f2a883-b1eb-42cb-8369-0c7091ac1285" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155244Z:f6f2a883-b1eb-42cb-8369-0c7091ac1285" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODI2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "98162864-fe30-4813-8681-63e85b623f41" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:52:45.03Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e3b86267-bca7-4af1-ae8b-94fe0e934b90?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e3b86267-bca7-4af1-ae8b-94fe0e934b90?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "e3b86267-bca7-4af1-ae8b-94fe0e934b90" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "38807576-0eca-4900-93be-257e018fa445" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155245Z:38807576-0eca-4900-93be-257e018fa445" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzgxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-ms-client-request-id": [ + "bfe22e5b-056a-4664-8019-95d908f8b87a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:52:45.163Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e54b48e9-4586-4985-b824-1bd2ee953850?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e54b48e9-4586-4985-b824-1bd2ee953850?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "e54b48e9-4586-4985-b824-1bd2ee953850" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "25200fac-95de-4537-930b-76435d08aaca" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155245Z:25200fac-95de-4537-930b-76435d08aaca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/c384dd7a-97bd-495f-a09d-af641c99901e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYzM4NGRkN2EtOTdiZC00OTVmLWEwOWQtYWY2NDFjOTk5MDFlP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"c384dd7a-97bd-495f-a09d-af641c99901e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:52:43.867Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c2b42c62-e889-4a5d-8752-886955324932" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "969d638c-4d7d-4dd2-8056-64b5de6f70c7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155259Z:969d638c-4d7d-4dd2-8056-64b5de6f70c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/94dd6ffa-0097-4860-8055-1006b7c1e032?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTRkZDZmZmEtMDA5Ny00ODYwLTgwNTUtMTAwNmI3YzFlMDMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"94dd6ffa-0097-4860-8055-1006b7c1e032\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:52:44.343Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5201ec62-48b4-4f36-98f1-911a920a5e47" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14929" + ], + "x-ms-correlation-request-id": [ + "f98ae9dc-1cf3-4eaa-9ea8-10dbe4a169c1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155259Z:f98ae9dc-1cf3-4eaa-9ea8-10dbe4a169c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.04Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365\",\r\n \"name\": \"sqlcrudtest-9365\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:52:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2e098c52-988b-4657-89d3-ee5712dc28d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "94b87d0a-ccc3-4db8-b635-f7f8675e32f7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155300Z:94b87d0a-ccc3-4db8-b635-f7f8675e32f7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58a81b79-a64f-452e-91c8-d00bc2529cef" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.04Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365\",\r\n \"name\": \"sqlcrudtest-9365\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7b118976-a512-414a-b993-3b0da8ae4860" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "acbddfc3-94b5-4b98-9f4f-5c0768c8e5a9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155301Z:acbddfc3-94b5-4b98-9f4f-5c0768c8e5a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NjgyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.517Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682\",\r\n \"name\": \"sqlcrudtest-5682\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "48929ace-03c5-417c-862e-36233aaee514" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "8d44cf95-348d-46cd-a75c-53231b6c58e1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155300Z:8d44cf95-348d-46cd-a75c-53231b6c58e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NjgyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0cc962f4-6812-4cc2-9663-36fd91f37a3e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.517Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682\",\r\n \"name\": \"sqlcrudtest-5682\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d17ccde3-60f7-436d-8580-2413d9f0342a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "9f241409-2521-4250-ac87-e0cc6735cd55" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155302Z:9f241409-2521-4250-ac87-e0cc6735cd55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e54b48e9-4586-4985-b824-1bd2ee953850?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTU0YjQ4ZTktNDU4Ni00OTg1LWI4MjQtMWJkMmVlOTUzODUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e54b48e9-4586-4985-b824-1bd2ee953850\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:52:45.163Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b7c08dac-69b4-40d8-bff3-77daa4b9e7d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "18b85745-2164-48d5-b113-9b22d7ed4ed5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155300Z:18b85745-2164-48d5-b113-9b22d7ed4ed5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e3b86267-bca7-4af1-ae8b-94fe0e934b90?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTNiODYyNjctYmNhNy00YWYxLWFlOGItOTRmZTBlOTM0YjkwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e3b86267-bca7-4af1-ae8b-94fe0e934b90\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:52:45.03Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cb413d1e-ae18-4b90-9cef-6407b424ef01" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14928" + ], + "x-ms-correlation-request-id": [ + "fa57dae8-9bf0-4859-8e71-b874059f8323" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155300Z:fa57dae8-9bf0-4859-8e71-b874059f8323" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODI2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.203Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826\",\r\n \"name\": \"sqlcrudtest-2826\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3ed77ad5-ed94-421f-9da0-5727987148eb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "7b2ccf2b-e80b-4bee-afef-3245b473f49d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155301Z:7b2ccf2b-e80b-4bee-afef-3245b473f49d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODI2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1912892b-dd91-4956-bb47-5af2c4d9cad8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.203Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826\",\r\n \"name\": \"sqlcrudtest-2826\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "38fac3f9-d00c-4ac5-be55-cbe1c3d7e640" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "e15be2c6-1075-49bf-bdcb-8d6e6d0c2e50" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155302Z:e15be2c6-1075-49bf-bdcb-8d6e6d0c2e50" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzgxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.333Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381\",\r\n \"name\": \"sqlcrudtest-9381\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fdee5622-06fb-4e2d-b82c-b264a2f7be03" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "f0fd073b-d3c4-46ce-af56-d85e00c41962" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155301Z:f0fd073b-d3c4-46ce-af56-d85e00c41962" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzgxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1b2a66f8-d4e8-4890-a16a-7300823404cc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.333Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381\",\r\n \"name\": \"sqlcrudtest-9381\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2b4438b5-8828-486b-9d7e-0e70ecb2afae" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14927" + ], + "x-ms-correlation-request-id": [ + "a90b6e30-6a10-488b-a455-6f069d3c603e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155301Z:a90b6e30-6a10-488b-a455-6f069d3c603e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c939f2c2-f41d-4a75-bd54-15f649534d45" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.203Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826\",\r\n \"name\": \"sqlcrudtest-2826\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n },\r\n {\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.517Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682\",\r\n \"name\": \"sqlcrudtest-5682\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n },\r\n {\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:44.04Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365\",\r\n \"name\": \"sqlcrudtest-9365\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n },\r\n {\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2018-04-18T15:52:45.333Z\",\r\n \"defaultSecondaryLocation\": \"North Europe\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381\",\r\n \"name\": \"sqlcrudtest-9381\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4dc719d1-eb5d-46a0-86a3-cdde49484665" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "dbe93425-3791-4e3b-9a4a-1a31e5a7e436" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155303Z:dbe93425-3791-4e3b-9a4a-1a31e5a7e436" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9365?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzY1P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0fb3b117-ea59-4a55-a91c-f8cf93b475ca" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "4b1e3418-b658-4259-bafa-b50d31018c50" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-correlation-request-id": [ + "3d83b179-d140-4a5b-b8fa-f6ec758de4df" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155304Z:3d83b179-d140-4a5b-b8fa-f6ec758de4df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2da16355-7f85-41f6-938c-df3f89c3cfe6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "eae8e292-98fc-447a-a39b-dde74a82eae3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155319Z:eae8e292-98fc-447a-a39b-dde74a82eae3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "040bd025-2eb7-4a0d-a3dc-275b39ca9fb3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "e3636af4-c201-469e-a01b-991744488488" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155335Z:e3636af4-c201-469e-a01b-991744488488" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:53:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b6a1f71d-f77b-474d-be69-8fdc7cdb7a52" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "0c5881ab-4d77-4ebe-9145-ba6cf678170b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155350Z:0c5881ab-4d77-4ebe-9145-ba6cf678170b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:54:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f7e3ea3e-12ed-47e1-8701-549481a9e986" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "3ec86dae-1781-4503-a44a-9fef709a1a88" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155406Z:3ec86dae-1781-4503-a44a-9fef709a1a88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:54:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "16f37ae1-56bc-4d1e-ae49-e695adab8552" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "cb1edaa7-e5d0-4098-9e88-44b9a910fde9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155422Z:cb1edaa7-e5d0-4098-9e88-44b9a910fde9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:54:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "46d39ebb-844e-4d04-9745-8bbef1e83cdb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "9eeadeb0-591f-4b77-9038-7d1b1d6b56a0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155438Z:9eeadeb0-591f-4b77-9038-7d1b1d6b56a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:54:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a92c1f02-d39e-40b2-b60f-a4c17dd5343f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "bd53d892-84d1-4d72-aaff-9140816dc4f8" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155453Z:bd53d892-84d1-4d72-aaff-9140816dc4f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:55:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b5d17c97-e62c-4ef0-abc0-f60dcf4a766d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "3a212f42-ee60-4cfa-b393-3e6570dc90e5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155509Z:3a212f42-ee60-4cfa-b393-3e6570dc90e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:55:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4470a067-eedb-4897-a129-c82fd29d8023" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "3ed89108-e80a-405a-9e5d-0c7d84b55520" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155524Z:3ed89108-e80a-405a-9e5d-0c7d84b55520" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:55:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d9118e8d-b35e-4d49-89ff-fe4ebf54ec26" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "c4069ad8-fab2-4571-bcd2-e8ac8cd69c3f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155540Z:c4069ad8-fab2-4571-bcd2-e8ac8cd69c3f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:55:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bdf18baf-5b75-487e-a294-9a8dd0761f24" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "4c267040-50f6-441d-8bff-9619ec86f45b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155555Z:4c267040-50f6-441d-8bff-9619ec86f45b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d81fd720-5d28-472e-9043-23f4ced2772e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "dbe33555-7500-4407-b937-aa4d6e9fc635" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155611Z:dbe33555-7500-4407-b937-aa4d6e9fc635" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "40f38104-82f8-4574-ab87-57163220c7d9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "8012f853-11db-4948-acea-9676db89e39a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155626Z:8012f853-11db-4948-acea-9676db89e39a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "74103123-62f3-42de-9588-3c33bdea5166" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "fe79aa5c-2479-44d2-9194-de47ea4d9713" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155642Z:fe79aa5c-2479-44d2-9194-de47ea4d9713" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b1e3418-b658-4259-bafa-b50d31018c50\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:53:04.31Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3afb2b52-7af2-4e45-87dd-769178ae7076" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "b7d17001-862a-4fb5-a781-8f556e4172a7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155657Z:b7d17001-862a-4fb5-a781-8f556e4172a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/4b1e3418-b658-4259-bafa-b50d31018c50?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvNGIxZTM0MTgtYjY1OC00MjU5LWJhZmEtYjUwZDMxMDE4YzUwP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:56:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5b323efb-ff3a-4aee-a2fe-6b232a86d289" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "d0ddda33-72e3-44eb-b5fc-9f1c3017f48f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155658Z:d0ddda33-72e3-44eb-b5fc-9f1c3017f48f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-9381?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05MzgxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7db63de5-126e-4f21-9667-195d16a5bb90" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:57:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "2fac8d51-a400-461f-a2c2-922a193198c2" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "ea9b51bb-827a-4b9d-9331-6734a0f2ea79" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155701Z:ea9b51bb-827a-4b9d-9331-6734a0f2ea79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:57:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69e9484e-dd46-4c46-8d40-3938202bcff3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "e2d90659-9f18-4b50-8ece-9c5e619f1839" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155716Z:e2d90659-9f18-4b50-8ece-9c5e619f1839" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:57:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "54e927e3-4a4d-47be-b27c-03ea58864f52" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "d321f8bb-8fce-4fbd-8fa6-89d5e1764f27" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155731Z:d321f8bb-8fce-4fbd-8fa6-89d5e1764f27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:57:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "87497f10-06c4-4ad1-925a-7ea2714853d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "ffc9cd8c-e6c0-437f-b149-e1c234eb7167" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155747Z:ffc9cd8c-e6c0-437f-b149-e1c234eb7167" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:58:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fb903595-b6fa-461d-8be3-6a68c6e667fa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "e16a443f-5f51-4d20-9285-c528e6c87eac" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155802Z:e16a443f-5f51-4d20-9285-c528e6c87eac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:58:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "401d4c97-002c-4bbe-970e-087a95d218c0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "fccba426-23fa-4f2d-98b7-b3da28531938" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155817Z:fccba426-23fa-4f2d-98b7-b3da28531938" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:58:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "77515510-a06d-4e6c-9b03-53b0db6ec40e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "870bc003-52fe-492a-b8be-28bb603ea282" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155833Z:870bc003-52fe-492a-b8be-28bb603ea282" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:58:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "81519766-9f72-4763-9714-9d12a727e324" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "38675061-329f-415c-a159-3eda6da3f733" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155848Z:38675061-329f-415c-a159-3eda6da3f733" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:59:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b5051f95-0f0e-40e9-9997-9e7c83d7631b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "8bbf0009-d023-4fca-bb0e-a8dae9b335c0" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155904Z:8bbf0009-d023-4fca-bb0e-a8dae9b335c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:59:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0f4f2e5e-a698-4a06-a04e-a7452a3be80a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "4f7104ae-eb7b-47d3-8826-345d4db5dc67" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155920Z:4f7104ae-eb7b-47d3-8826-345d4db5dc67" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:59:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "53f3e420-54b1-4bd1-83c7-0bffb8b6989a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "4588ad96-967e-499d-aec0-013dfe26a96e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155935Z:4588ad96-967e-499d-aec0-013dfe26a96e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 15:59:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1e017a00-6486-4bae-aa42-e31f26b253ef" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "d35fe135-4014-4853-be4e-97f8c86c48d2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T155951Z:d35fe135-4014-4853-be4e-97f8c86c48d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:00:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5b44a372-1c20-4e8f-b587-93b8808e57ff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "ecff075f-7aa3-45d1-b77a-64b3a5cef210" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160006Z:ecff075f-7aa3-45d1-b77a-64b3a5cef210" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:00:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9bf9c070-a6fc-4867-8242-7f3ae694b702" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "1ba0ce42-046c-4d80-b545-b6c2b03fe377" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160021Z:1ba0ce42-046c-4d80-b545-b6c2b03fe377" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:00:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2370de3c-9ab0-4a82-9b88-08b7cd19be43" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "5d4c8106-de12-47d8-ab1f-75201ba112cc" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160037Z:5d4c8106-de12-47d8-ab1f-75201ba112cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:00:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "89cda733-6cb8-4c5b-b1c1-05b9a48cb02c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "0aa98941-75f7-49ca-85a0-1490e79bd04d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160052Z:0aa98941-75f7-49ca-85a0-1490e79bd04d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de087f6a-bb0e-43f7-9cf2-c6ff7a71aeb8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "bd7ad9f8-879f-402d-b36d-e72001cc8d9d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160107Z:bd7ad9f8-879f-402d-b36d-e72001cc8d9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9cae6e6-a26e-4275-bab2-68fc4ef84346" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "32215b88-a7cd-40d5-9da0-0d7bf1bf2b5e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160123Z:32215b88-a7cd-40d5-9da0-0d7bf1bf2b5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"2fac8d51-a400-461f-a2c2-922a193198c2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T15:57:00.843Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0871180c-7230-455c-afff-8bed80350415" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "95fa9ea2-5b7a-4fc2-8330-83302ca2b2af" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160138Z:95fa9ea2-5b7a-4fc2-8330-83302ca2b2af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/2fac8d51-a400-461f-a2c2-922a193198c2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvMmZhYzhkNTEtYTQwMC00NjFmLWEyYzItOTIyYTE5MzE5OGMyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "5830681f-11ce-4099-bb8e-2754edb757db" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "ef573878-6b88-433c-bd08-b6f3478de8b9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160139Z:ef573878-6b88-433c-bd08-b6f3478de8b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-5682?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NjgyP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce9ddf53-2ceb-43b3-84b6-431bb866f67e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "e6928cb5-3008-4fe2-8551-539a3fc697d6" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "b855e623-3ddd-4600-aae3-a2885959a184" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160140Z:b855e623-3ddd-4600-aae3-a2885959a184" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:01:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2d0b2819-0c4b-4512-8d14-196cae2c7e29" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "85309f39-0f47-4354-bf43-6af1986f469e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160155Z:85309f39-0f47-4354-bf43-6af1986f469e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:02:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "87d0b9de-ef0b-46bf-a9d0-394353107e86" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "c0cf7e45-8c0a-4cd0-9d1e-e2f02fc9768b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160211Z:c0cf7e45-8c0a-4cd0-9d1e-e2f02fc9768b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:02:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "67d34e8c-eea9-40cf-922d-44a7ac97741a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "2c687620-23d7-493f-9da2-f38cbf252107" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160227Z:2c687620-23d7-493f-9da2-f38cbf252107" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:02:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "09bed2a0-8711-49cf-a510-06f8fa312213" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "b8210146-4dfe-48d9-bc0f-01cfcaa67368" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160243Z:b8210146-4dfe-48d9-bc0f-01cfcaa67368" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:02:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "402c2c61-890a-4e83-bab1-9d27736bfb8c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "5b7e5a50-2d44-40eb-92fa-1cccb4e7934d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160258Z:5b7e5a50-2d44-40eb-92fa-1cccb4e7934d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:03:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d9c0ed01-9ade-4766-90d1-6a2ec3595816" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "3978c249-bf1c-4380-ab0f-30e9e8ac59cb" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160313Z:3978c249-bf1c-4380-ab0f-30e9e8ac59cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:03:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c5cccda5-ddcf-4d7e-8aef-78754619df9c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "9f990be2-b29f-44b1-a979-4c63d7d6a4d2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160329Z:9f990be2-b29f-44b1-a979-4c63d7d6a4d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:03:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9704f0b0-4875-4e94-8084-108058a6a788" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "87649c09-e23e-45a8-b392-fd37d872f969" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160344Z:87649c09-e23e-45a8-b392-fd37d872f969" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:04:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "88d839f1-f9ce-4f9f-b449-415905341553" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "752bb86e-500f-4b6e-a664-3b20b3e6fffa" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160400Z:752bb86e-500f-4b6e-a664-3b20b3e6fffa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:04:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1c38317a-d542-45d5-b8d8-e4164c7c3b82" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "34b6df8d-022c-4d88-b732-7a240033327f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160416Z:34b6df8d-022c-4d88-b732-7a240033327f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:04:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3c61d7cb-d964-4efa-9084-a0222dd2e7c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "619289bd-ad49-43ec-aebc-e1b0d737332e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160432Z:619289bd-ad49-43ec-aebc-e1b0d737332e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:04:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0796b10e-d3b3-4c4e-9578-08e7c914fc74" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "c72e54f3-92ec-4a2c-a03d-fba781001894" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160447Z:c72e54f3-92ec-4a2c-a03d-fba781001894" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:05:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1e719454-c461-4cbb-8cd4-685b89da762e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "f646628e-35a1-4cde-85e4-155dd44e880a" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160503Z:f646628e-35a1-4cde-85e4-155dd44e880a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:05:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1fc551f4-16ba-472a-8e10-79223640d11d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "ecb0d705-4b6d-4125-88cc-d72b934a093c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160518Z:ecb0d705-4b6d-4125-88cc-d72b934a093c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:05:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b21f009e-a462-452a-983c-fc5300fa3758" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "00056c5a-e698-4cf1-ac8c-d1b8133dcf62" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160534Z:00056c5a-e698-4cf1-ac8c-d1b8133dcf62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:05:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8e447ab0-ab6d-4f93-8bde-427286a2e9ab" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "bb946571-a9f9-4c62-9723-8d6b8ae3e135" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160549Z:bb946571-a9f9-4c62-9723-8d6b8ae3e135" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d9e5bcdb-03b0-45dd-baf5-60ea494df946" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "4521189c-e936-4f7c-9c0c-f5e2e40c30e3" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160605Z:4521189c-e936-4f7c-9c0c-f5e2e40c30e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e6928cb5-3008-4fe2-8551-539a3fc697d6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:01:40.38Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "61c8303c-6c5b-4b0c-8788-39554836c592" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "8b62fc05-9771-4245-80ba-f32b1d0bbf95" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160620Z:8b62fc05-9771-4245-80ba-f32b1d0bbf95" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/e6928cb5-3008-4fe2-8551-539a3fc697d6?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvZTY5MjhjYjUtMzAwOC00ZmUyLTg1NTEtNTM5YTNmYzY5N2Q2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "94a8b939-11f9-4aeb-9637-8a3ae17c1d23" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "e0a0d05d-54b6-4a6e-848d-b6c6451a4fda" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160621Z:e0a0d05d-54b6-4a6e-848d-b6c6451a4fda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/testclrg/providers/Microsoft.Sql/managedInstances/tdstage-haimb-dont-delete-3/databases/sqlcrudtest-2826?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3Rlc3RjbHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL21hbmFnZWRJbnN0YW5jZXMvdGRzdGFnZS1oYWltYi1kb250LWRlbGV0ZS0zL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0yODI2P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "56921932-1a81-4fe6-a526-ff5cdae79602" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "ea302d50-e758-4023-b009-a7092cbeea74" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "257bdc7b-b124-4099-9082-6d6fbc6a66ff" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160622Z:257bdc7b-b124-4099-9082-6d6fbc6a66ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ff629bb9-5261-455a-8162-d12e01b963cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "2c19eaa5-052d-4ca2-8d76-40f5a08ccf37" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160638Z:2c19eaa5-052d-4ca2-8d76-40f5a08ccf37" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:06:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3122ef5b-d760-400a-87dc-ef70f0adec8b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "2427f15f-7909-4786-a2e6-537fb6458e3c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160653Z:2427f15f-7909-4786-a2e6-537fb6458e3c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:07:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "18fceb86-126f-4f5e-b572-edd515d2b7b5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "8dd151dd-ce01-435f-ae71-714f1375afea" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160708Z:8dd151dd-ce01-435f-ae71-714f1375afea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:07:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9bb6ffb0-8054-4786-87ae-e9805c66d6dd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "128d721d-01db-483f-b46b-982943198f28" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160724Z:128d721d-01db-483f-b46b-982943198f28" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:07:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3022e3cd-1d54-444a-912b-b97d3a775859" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "5c137f8f-c182-4745-a50e-e76fe810bac2" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160740Z:5c137f8f-c182-4745-a50e-e76fe810bac2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:07:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "62d2a9d6-533d-46db-a092-9f1baf85c2a6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "2e92703c-fbb7-4f5e-af0c-b46763bf30f5" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160755Z:2e92703c-fbb7-4f5e-af0c-b46763bf30f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:08:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ea802ab5-5b86-486b-ba8f-0b122095306b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "148dc0b0-e651-4b27-aed6-93bc9c74f081" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160811Z:148dc0b0-e651-4b27-aed6-93bc9c74f081" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:08:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "28d9d7cd-1ff0-410d-8e12-8f23056506fd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "5e9aa8eb-c218-4415-97af-109d4f15439c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160826Z:5e9aa8eb-c218-4415-97af-109d4f15439c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:08:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c39c32e5-fa05-4b37-ac2e-8a096ede119d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "9fef281d-11d2-4266-ad62-04ec94dee84b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160842Z:9fef281d-11d2-4266-ad62-04ec94dee84b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:08:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "908507d6-5555-4d51-b527-18d25c7f7cce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "a1c8fbb3-7f3d-45e0-9891-8c92d6cbe67f" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160858Z:a1c8fbb3-7f3d-45e0-9891-8c92d6cbe67f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:09:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "94e86a16-bd40-4fd3-9f59-5898fab630fd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "dd0f7245-7ab0-4a25-ad2d-620805db984d" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160913Z:dd0f7245-7ab0-4a25-ad2d-620805db984d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:09:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "63ac01c6-a130-4529-afd9-89d44243fd62" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "bef771e8-cf79-4405-a7b8-19d3324acfe4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160928Z:bef771e8-cf79-4405-a7b8-19d3324acfe4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:09:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d2c5ba07-f18e-482c-907d-8790b43f7c18" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-correlation-request-id": [ + "eb164d6b-54c2-42ca-ac46-a5f8973ae5b4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160944Z:eb164d6b-54c2-42ca-ac46-a5f8973ae5b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:09:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fadc4345-3680-40f0-97f7-0510d6d28fb0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "ac4a067d-81ce-4a34-8020-a874949b9ca4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T160959Z:ac4a067d-81ce-4a34-8020-a874949b9ca4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:10:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "874ad3a7-a05a-45f4-a90d-872740716ed0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "12554c97-9229-44cd-b75f-d78be5bb0034" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161015Z:12554c97-9229-44cd-b75f-d78be5bb0034" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:10:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "49172eb8-221b-4104-8e55-14125b9b67e5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "438d5a0a-d1bf-45db-9a9c-7fb5eb83a30c" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161030Z:438d5a0a-d1bf-45db-9a9c-7fb5eb83a30c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:10:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4a0fdbe5-fd49-426d-8786-70fc06a31a8e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "36b4c2b9-6027-4c30-90f9-70e2bcc67fd6" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161046Z:36b4c2b9-6027-4c30-90f9-70e2bcc67fd6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e8eb0b94-a21c-4397-bb1c-b85ed4e174a1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14957" + ], + "x-ms-correlation-request-id": [ + "0cba508a-c4b1-4829-b2f1-530d43d94a7e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161101Z:0cba508a-c4b1-4829-b2f1-530d43d94a7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "14284da0-a730-4804-b881-4c1f84d617af" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-correlation-request-id": [ + "deccf6be-88d0-4c2f-9e73-f091f2557c12" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161117Z:deccf6be-88d0-4c2f-9e73-f091f2557c12" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ea302d50-e758-4023-b009-a7092cbeea74\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:06:22.457Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d5dae6c4-48c0-4c8c-b1c6-96f4456f56c8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "cfe5bdee-4140-4568-9e5f-252030c0d2a9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161133Z:cfe5bdee-4140-4568-9e5f-252030c0d2a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/ea302d50-e758-4023-b009-a7092cbeea74?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvZWEzMDJkNTAtZTc1OC00MDIzLWIwMDktYTcwOTJjYmVlYTc0P2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.14.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:11:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c7270462-e844-46fd-9ee3-914359615c26" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-correlation-request-id": [ + "57707342-b214-4669-9102-7a618ca11648" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T161133Z:57707342-b214-4669-9102-7a618ca11648" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 204 + } + ], + "Names": { + "CreateManagedDatabasesAsync": [ + "sqlcrudtest-9365", + "sqlcrudtest-9381", + "sqlcrudtest-5682", + "sqlcrudtest-2826" + ] + }, + "Variables": { + "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedInstanceCrudScenarioTests/TestCreateUpdateGetDropManagedInstance.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedInstanceCrudScenarioTests/TestCreateUpdateGetDropManagedInstance.json new file mode 100644 index 000000000000..73cc35e203d2 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ManagedInstanceCrudScenarioTests/TestCreateUpdateGetDropManagedInstance.json @@ -0,0 +1,1532 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourcegroups/sqlcrudtest-5675?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU2NzU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"south east asia\",\r\n \"tags\": {\r\n \"sqlcrudtest-5675\": \"2018-04-18 16:39:14Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "104" + ], + "x-ms-client-request-id": [ + "45a491a7-13f4-42e9-a9dd-1ebc0dc5da0a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675\",\r\n \"name\": \"sqlcrudtest-5675\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"sqlcrudtest-5675\": \"2018-04-18 16:39:14Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "243" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:39:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "6e0239e6-0b52-444a-a02f-185a0c5e825b" + ], + "x-ms-correlation-request-id": [ + "6e0239e6-0b52-444a-a02f-185a0c5e825b" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T163916Z:6e0239e6-0b52-444a-a02f-185a0c5e825b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"MIGP8G4\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "456" + ], + "x-ms-client-request-id": [ + "8ccf2bc1-fa4b-476b-8085-b63e4f90c700" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertManagedServer\",\r\n \"startTime\": \"2018-04-18T16:39:20.433Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:39:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/4b476540-13b6-4032-946a-aab3647c7998?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/4b476540-13b6-4032-946a-aab3647c7998?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "4b476540-13b6-4032-946a-aab3647c7998" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "a5e96239-33e3-4e8b-aef1-8e6db82a5082" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T163921Z:a5e96239-33e3-4e8b-aef1-8e6db82a5082" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/4b476540-13b6-4032-946a-aab3647c7998?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vNGI0NzY1NDAtMTNiNi00MDMyLTk0NmEtYWFiMzY0N2M3OTk4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b476540-13b6-4032-946a-aab3647c7998\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:39:20.433Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:40:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d4ac17b8-5932-4b53-ae29-82054088b44e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14921" + ], + "x-ms-correlation-request-id": [ + "b632b9fc-c208-48b7-bc66-471f50da4b86" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164023Z:b632b9fc-c208-48b7-bc66-471f50da4b86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/4b476540-13b6-4032-946a-aab3647c7998?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vNGI0NzY1NDAtMTNiNi00MDMyLTk0NmEtYWFiMzY0N2M3OTk4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b476540-13b6-4032-946a-aab3647c7998\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:39:20.433Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:41:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ff7372e0-3537-42c9-b17e-9d3df545236e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "b32df07a-3e7e-4144-9b90-97351cac61a9" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164125Z:b32df07a-3e7e-4144-9b90-97351cac61a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:41:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b324fea8-4ba4-439d-bc05-a2fff90b1f8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "c23c21a9-319f-425d-a4d9-27504def7464" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164126Z:c23c21a9-319f-425d-a4d9-27504def7464" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "609c58df-9fdc-4094-b72f-8345dc7b31c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d1f48af3-5b26-4988-812d-1537cdee506d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "ea39609c-eaa5-49d2-9b54-3bef3b02cf80" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164330Z:ea39609c-eaa5-49d2-9b54-3bef3b02cf80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"asdf\": \"zxcv\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "370b889d-2d15-4d39-b69f-7ba61b1f2702" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14918" + ], + "x-ms-correlation-request-id": [ + "79334fb3-6e23-4a05-9ab9-a38aa545dd29" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164433Z:79334fb3-6e23-4a05-9ab9-a38aa545dd29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"MIGP8G4\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "456" + ], + "x-ms-client-request-id": [ + "71fd590d-fd00-49c1-b6e3-e16d6caad3cb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertManagedServer\",\r\n \"startTime\": \"2018-04-18T16:41:27.02Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:41:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/40c9e140-3ba2-4a3e-a6ea-5c7923638c6c?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/40c9e140-3ba2-4a3e-a6ea-5c7923638c6c?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "40c9e140-3ba2-4a3e-a6ea-5c7923638c6c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "5ff5bc34-9194-4305-a56f-6b6e5b976b29" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164127Z:5ff5bc34-9194-4305-a56f-6b6e5b976b29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/40c9e140-3ba2-4a3e-a6ea-5c7923638c6c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vNDBjOWUxNDAtM2JhMi00YTNlLWE2ZWEtNWM3OTIzNjM4YzZjP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"40c9e140-3ba2-4a3e-a6ea-5c7923638c6c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-04-18T16:41:27.02Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:42:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "852e1360-fb69-4c87-b24b-b057eec0c1d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14920" + ], + "x-ms-correlation-request-id": [ + "0aa0d5b1-2786-40a3-b643-f7ebaef8d383" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164228Z:0aa0d5b1-2786-40a3-b643-f7ebaef8d383" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/40c9e140-3ba2-4a3e-a6ea-5c7923638c6c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vNDBjOWUxNDAtM2JhMi00YTNlLWE2ZWEtNWM3OTIzNjM4YzZjP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"40c9e140-3ba2-4a3e-a6ea-5c7923638c6c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:41:27.02Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6e2a290a-5f1a-46f9-a402-77d321b38741" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "5e883398-551c-4e35-8c11-c6b21fb9cbdf" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164329Z:5e883398-551c-4e35-8c11-c6b21fb9cbdf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk2.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk2\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "daa90386-05f2-4240-805c-51846e9e079a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "39f09ad6-a133-4ccc-9879-df3828a90506" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164329Z:39f09ad6-a133-4ccc-9879-df3828a90506" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "74ba0ef1-ef76-46f8-912b-7320c7377bbb" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk2.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk2\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ccfe51ca-0588-4688-8b7e-675a69fee429" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "da8ed0e1-6d5e-4bce-a7b1-8b14e45a6ee4" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164330Z:da8ed0e1-6d5e-4bce-a7b1-8b14e45a6ee4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcz9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bdd8b564-8ebb-4de8-819d-9c9f3f6bbf92" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk1.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk1\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk2.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk2\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "06bfdf40-11f5-435b-8992-14beaa077e62" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "0b7957a6-c4bf-45b4-946b-92ab45775bb1" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164331Z:0b7957a6-c4bf-45b4-946b-92ab45775bb1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcz9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a2222d28-158a-4bc6-bdcf-7c59dcf5471b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"GP_Gen4\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen4\",\r\n \"capacity\": 16\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"sqlcl-crudtests-dotnetsdk2.tr10.southeastasia1-a.worker.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"dummylogin\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloud-lifter-stage-sea/subnets/default\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 16,\r\n \"storageSizeInGB\": 32\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2\",\r\n \"name\": \"sqlcl-crudtests-dotnetsdk2\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ca27d9c9-917a-4a28-9d9f-38395983a1c4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14915" + ], + "x-ms-correlation-request-id": [ + "d19bc616-eb07-4121-9a47-14403a022919" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164451Z:d19bc616-eb07-4121-9a47-14403a022919" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcz9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae443d7f-3c1b-41dd-a18d-5144ab82e59d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:45:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c8155030-405e-4e66-a8a2-98126a6aa360" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14913" + ], + "x-ms-correlation-request-id": [ + "8a90fd99-d01d-48fe-86b1-0684f70faca7" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164508Z:8a90fd99-d01d-48fe-86b1-0684f70faca7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"asdf\": \"zxcv\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "42" + ], + "x-ms-client-request-id": [ + "d8ad429d-ea04-47e2-ac91-24a2782dd404" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertManagedServer\",\r\n \"startTime\": \"2018-04-18T16:43:31.76Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:43:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/9fa8a764-2780-44da-92ea-c95316468178?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/9fa8a764-2780-44da-92ea-c95316468178?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "9fa8a764-2780-44da-92ea-c95316468178" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "11c05411-bef7-4f66-abf0-3ab981356721" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164332Z:11c05411-bef7-4f66-abf0-3ab981356721" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/9fa8a764-2780-44da-92ea-c95316468178?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vOWZhOGE3NjQtMjc4MC00NGRhLTkyZWEtYzk1MzE2NDY4MTc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9fa8a764-2780-44da-92ea-c95316468178\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:43:31.76Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "60" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0910661b-9dbd-4478-b2d1-2baaee007581" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14919" + ], + "x-ms-correlation-request-id": [ + "5238f884-678f-4811-aa3b-b9fae7846101" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164433Z:5238f884-678f-4811-aa3b-b9fae7846101" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMT9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0a8ebdaa-34f4-47d2-b8f9-fcdc7399eb5c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedServer\",\r\n \"startTime\": \"2018-04-18T16:44:34.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "72" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/032d19ab-6f77-4951-b3f5-5627b3b59d11?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/032d19ab-6f77-4951-b3f5-5627b3b59d11?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "032d19ab-6f77-4951-b3f5-5627b3b59d11" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "f13da77d-e332-47ae-8b1b-0387f4046a63" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164434Z:f13da77d-e332-47ae-8b1b-0387f4046a63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/032d19ab-6f77-4951-b3f5-5627b3b59d11?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vMDMyZDE5YWItNmY3Ny00OTUxLWIzZjUtNTYyN2IzYjU5ZDExP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"032d19ab-6f77-4951-b3f5-5627b3b59d11\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:44:34.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8ffb605f-18ec-4e43-ae12-0183fbcceaa3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14917" + ], + "x-ms-correlation-request-id": [ + "e94bdeab-da4f-4971-9b4e-b335659f5011" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164450Z:e94bdeab-da4f-4971-9b4e-b335659f5011" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/032d19ab-6f77-4951-b3f5-5627b3b59d11?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZU9wZXJhdGlvblJlc3VsdHMvMDMyZDE5YWItNmY3Ny00OTUxLWIzZjUtNTYyN2IzYjU5ZDExP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "c0e0c703-c3b7-4fa7-858e-ba2354d37583" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14916" + ], + "x-ms-correlation-request-id": [ + "bc1eaf24-56cc-4428-ae21-071792c6ad9e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164451Z:bc1eaf24-56cc-4428-ae21-071792c6ad9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/sqlcrudtest-5675/providers/Microsoft.Sql/managedInstances/sqlcl-crudtests-dotnetsdk2?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU2NzUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbWFuYWdlZEluc3RhbmNlcy9zcWxjbC1jcnVkdGVzdHMtZG90bmV0c2RrMj9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e02cc350-ed34-4c96-b4a4-9026a699a2b2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DropManagedServer\",\r\n \"startTime\": \"2018-04-18T16:44:52.04Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:44:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/d2014daf-4cb9-47f9-bae0-5bd2a7caaa35?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/d2014daf-4cb9-47f9-bae0-5bd2a7caaa35?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "d2014daf-4cb9-47f9-bae0-5bd2a7caaa35" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "e49839fe-9c2e-4751-b9b2-79a9b6ece54e" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164452Z:e49839fe-9c2e-4751-b9b2-79a9b6ece54e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceAzureAsyncOperation/d2014daf-4cb9-47f9-bae0-5bd2a7caaa35?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZUF6dXJlQXN5bmNPcGVyYXRpb24vZDIwMTRkYWYtNGNiOS00N2Y5LWJhZTAtNWJkMmE3Y2FhYTM1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d2014daf-4cb9-47f9-bae0-5bd2a7caaa35\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-18T16:44:52.04Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:45:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eeca78da-2443-4059-b597-a28f10fa81b7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14915" + ], + "x-ms-correlation-request-id": [ + "87ceeff6-5e35-488d-a3f7-1ecc2da4d381" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164507Z:87ceeff6-5e35-488d-a3f7-1ecc2da4d381" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedInstanceOperationResults/d2014daf-4cb9-47f9-bae0-5bd2a7caaa35?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWRJbnN0YW5jZU9wZXJhdGlvblJlc3VsdHMvZDIwMTRkYWYtNGNiOS00N2Y5LWJhZTAtNWJkMmE3Y2FhYTM1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:45:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "460830ad-9d97-4d81-9498-d795eef8bb69" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14914" + ], + "x-ms-correlation-request-id": [ + "298d26b5-2ba6-4670-802d-7b168217cf52" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164507Z:298d26b5-2ba6-4670-802d-7b168217cf52" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourcegroups/sqlcrudtest-5675?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU2NzU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "16c6439f-48a9-412f-83a2-99220d4e106c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.26201.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 18 Apr 2018 16:45:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://api-dogfood.resources.windows-int.net/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU2NzUtU09VVEhFQVNUQVNJQSIsImpvYkxvY2F0aW9uIjoic291dGhlYXN0YXNpYSJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-request-id": [ + "6847de99-2230-4de3-8e09-8ccfb49b2cbc" + ], + "x-ms-correlation-request-id": [ + "6847de99-2230-4de3-8e09-8ccfb49b2cbc" + ], + "x-ms-routing-request-id": [ + "WESTEUROPE:20180418T164509Z:6847de99-2230-4de3-8e09-8ccfb49b2cbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-5675" + ] + }, + "Variables": { + "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b", + "DefaultLocation": "south east asia", + "DefaultLocationId": "southeastasia" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj index 13d5eed516cf..5941ef96d589 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj +++ b/src/SDKs/SqlManagement/Sql.Tests/Sql.Tests.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs index c28976b57e58..b2957616c3b0 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs @@ -93,6 +93,35 @@ public Server CreateServer(ResourceGroup resourceGroup, string location) return v12Server; } + public ManagedInstance CreateManagedInstance(ResourceGroup resourceGroup) + { + return CreateManagedInstance(resourceGroup, TestEnvironmentUtilities.DefaultLocationId); + } + + public ManagedInstance CreateManagedInstance(ResourceGroup resourceGroup, string location) + { + SqlManagementClient sqlClient = GetClient(); + + string miName = "crud-tests-" + SqlManagementTestUtilities.GenerateName(); + Dictionary tags = new Dictionary(); + string subnetId = "/subscriptions/a8c9a924-06c0-4bde-9788-e7b1370969e1/resourceGroups/RG_MIPlayground/providers/Microsoft.Network/virtualNetworks/VNET_MIPlayground/subnets/MISubnet"; + Microsoft.Azure.Management.Sql.Models.Sku sku = new Microsoft.Azure.Management.Sql.Models.Sku(name: "CLS3", tier: "Standard"); + + var managedInstance = sqlClient.ManagedInstances.CreateOrUpdate(resourceGroup.Name, miName, new ManagedInstance() + { + AdministratorLogin = SqlManagementTestUtilities.DefaultLogin, + AdministratorLoginPassword = SqlManagementTestUtilities.DefaultPassword, + Sku = sku, + SubnetId = subnetId, + Tags = tags, + Location = location, + }); + + SqlManagementTestUtilities.ValidateManagedInstance(managedInstance, miName, SqlManagementTestUtilities.DefaultLogin, tags, location); + + return managedInstance; + } + protected virtual void Dispose(bool disposing) { if (!disposedValue) diff --git a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs index 76c5a1e635a6..faf5aac38984 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestUtilities.cs @@ -87,6 +87,17 @@ public static void ValidateServer(Server actual, string name, string login, stri Assert.Equal(location.ToLower().Replace(" ", ""), actual.Location.ToLower().Replace(" ", "")); } + public static void ValidateManagedInstance(ManagedInstance actual, string name, string login, Dictionary tags, string location) + { + Assert.NotNull(actual); + Assert.Equal(name, actual.Name); + Assert.Equal(login, actual.AdministratorLogin); + SqlManagementTestUtilities.AssertCollection(tags, actual.Tags); + + // Location is being returned two different ways across different APIs. + Assert.Equal(location.ToLower().Replace(" ", ""), actual.Location.ToLower().Replace(" ", "")); + } + public static void ValidateDatabase(dynamic expected, Database actual, string name) { Assert.Equal(name, actual.Name); @@ -216,6 +227,68 @@ public static void ValidateDatabaseEx(Database expected, Database actual) SqlManagementTestUtilities.AssertCollection(expected.Tags, actual.Tags); } } + + public static void ValidateManagedDatabase(dynamic expected, ManagedDatabase actual, string name) + { + Assert.Equal(name, actual.Name); + Assert.NotNull(actual.CreationDate); + Assert.NotNull(actual.Id); + Assert.NotNull(actual.Type); + + // Old 2014-04-01 apis return en-us location friendly name, e.g. "Japan East", + // newer apis return locaion id e.g. "japaneast". This makes comparison + // logic annoying until we have a newer api-version for database. + //Assert.Equal(expected.Location, actual.Location); + + if (!string.IsNullOrEmpty(expected.Collation)) + { + Assert.Equal(expected.Collation, actual.Collation); + } + else + { + Assert.NotNull(actual.Collation); + } + + if (expected.Location != null) + { + Assert.Equal(expected.Location, actual.Location); + } + else + { + Assert.NotNull(actual.Location); + } + } + + public static void ValidateManagedDatabaseEx(ManagedDatabase expected, ManagedDatabase actual) + { + Assert.Equal(expected.Name, actual.Name); + Assert.NotNull(actual.CreationDate); + Assert.NotNull(actual.Id); + Assert.NotNull(actual.Type); + + // Old 2014-04-01 apis return en-us location friendly name, e.g. "Japan East", + // newer apis return locaion id e.g. "japaneast". This makes comparison + // logic annoying until we have a newer api-version for database. + //Assert.Equal(expected.Location, actual.Location); + + if (!string.IsNullOrEmpty(expected.Collation)) + { + Assert.Equal(expected.Collation, actual.Collation); + } + else + { + Assert.NotNull(actual.Collation); + } + + if (expected.Location != null) + { + Assert.Equal(expected.Location, actual.Location); + } + else + { + Assert.NotNull(actual.Location); + } + } public static void ValidateElasticPool(dynamic expected, ElasticPool actual, string name) { @@ -267,6 +340,21 @@ public static void ValidateFailoverGroup(FailoverGroup expected, FailoverGroup a AssertCollection(expected.Tags, actual.Tags); } + public static void ValidateInstanceFailoverGroup(InstanceFailoverGroup expected, InstanceFailoverGroup actual, string name) + { + Assert.NotNull(actual); + Assert.NotNull(actual.Id); + Assert.NotNull(actual.Type); + + Assert.Equal(name, actual.Name); + Assert.Equal(expected.ReadOnlyEndpoint.FailoverPolicy, actual.ReadOnlyEndpoint.FailoverPolicy); + Assert.Equal(expected.ReadWriteEndpoint.FailoverPolicy, actual.ReadWriteEndpoint.FailoverPolicy); + Assert.Equal(expected.ReadWriteEndpoint.FailoverWithDataLossGracePeriodMinutes, actual.ReadWriteEndpoint.FailoverWithDataLossGracePeriodMinutes); + + Assert.Equal(expected.ManagedInstancePairs.FirstOrDefault().PrimaryManagedInstanceId, actual.ManagedInstancePairs.FirstOrDefault().PrimaryManagedInstanceId); + Assert.Equal(expected.ManagedInstancePairs.FirstOrDefault().PartnerManagedInstanceId, actual.ManagedInstancePairs.FirstOrDefault().PartnerManagedInstanceId); + } + public static void ValidateFirewallRule(FirewallRule expected, FirewallRule actual, string name) { Assert.NotNull(actual.Id); @@ -309,6 +397,31 @@ internal static Task CreateDatabasesAsync( })); } + // Wait for all databases to be created. + return Task.WhenAll(createDbTasks); + } + + internal static Task CreateManagedDatabasesAsync( + SqlManagementClient sqlClient, + string resourceGroupName, + ManagedInstance managedInstance, + string testPrefix, + int count) + { + List> createDbTasks = new List>(); + for (int i = 0; i < count; i++) + { + string name = SqlManagementTestUtilities.GenerateName(); + createDbTasks.Add(sqlClient.ManagedDatabases.CreateOrUpdateAsync( + resourceGroupName, + managedInstance.Name, + name, + new ManagedDatabase() + { + Location = managedInstance.Location + })); + } + // Wait for all databases to be created. return Task.WhenAll(createDbTasks); } diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index d03d1bbf2360..5d8a4a8f7548 100644 Binary files a/src/SDKs/_metadata/sql_resource-manager.txt and b/src/SDKs/_metadata/sql_resource-manager.txt differ