From f09e656ceaa4f377fa73c36854320d24bdda4995 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 17:38:03 -0700 Subject: [PATCH 01/10] Adding .NET sdk --- .../Generated/IJobAgentsOperations.cs | 292 +++ .../Generated/IJobCredentialsOperations.cs | 178 ++ .../Generated/IJobExecutionsOperations.cs | 393 ++++ .../Generated/IJobStepExecutionsOperations.cs | 150 ++ .../Generated/IJobStepsOperations.cs | 288 +++ .../IJobTargetExecutionsOperations.cs | 240 +++ .../Generated/IJobTargetGroupsOperations.cs | 178 ++ .../Generated/IJobVersionsOperations.cs | 118 ++ .../Generated/IJobsOperations.cs | 178 ++ .../Generated/ISqlManagementClient.cs | 45 + .../Generated/JobAgentsOperations.cs | 1351 ++++++++++++ .../JobAgentsOperationsExtensions.cs | 455 ++++ .../Generated/JobCredentialsOperations.cs | 1085 ++++++++++ .../JobCredentialsOperationsExtensions.cs | 272 +++ .../Generated/JobExecutionsOperations.cs | 1862 +++++++++++++++++ .../JobExecutionsOperationsExtensions.cs | 640 ++++++ .../Generated/JobStepExecutionsOperations.cs | 732 +++++++ .../JobStepExecutionsOperationsExtensions.cs | 235 +++ .../Generated/JobStepsOperations.cs | 1740 +++++++++++++++ .../Generated/JobStepsOperationsExtensions.cs | 458 ++++ .../JobTargetExecutionsOperations.cs | 1197 +++++++++++ ...JobTargetExecutionsOperationsExtensions.cs | 391 ++++ .../Generated/JobTargetGroupsOperations.cs | 1085 ++++++++++ .../JobTargetGroupsOperationsExtensions.cs | 272 +++ .../Generated/JobVersionsOperations.cs | 658 ++++++ .../JobVersionsOperationsExtensions.cs | 173 ++ .../Generated/JobsOperations.cs | 1081 ++++++++++ .../Generated/JobsOperationsExtensions.cs | 272 +++ .../Management.Sql/Generated/Models/Job.cs | 75 + .../Generated/Models/JobAgent.cs | 100 + .../Generated/Models/JobAgentState.cs | 25 + .../Generated/Models/JobAgentUpdate.cs | 53 + .../Generated/Models/JobCredential.cs | 84 + .../Generated/Models/JobExecution.cs | 172 ++ .../Generated/Models/JobExecutionLifecycle.cs | 30 + .../Generated/Models/JobExecutionTarget.cs | 71 + .../Generated/Models/JobSchedule.cs | 88 + .../Generated/Models/JobScheduleType.cs | 60 + .../Generated/Models/JobStep.cs | 139 ++ .../Generated/Models/JobStepAction.cs | 87 + .../Generated/Models/JobStepActionSource.cs | 21 + .../Generated/Models/JobStepActionType.cs | 21 + .../Models/JobStepExecutionOptions.cs | 90 + .../Generated/Models/JobStepOutput.cs | 140 ++ .../Generated/Models/JobStepOutputType.cs | 21 + .../Generated/Models/JobTarget.cs | 125 ++ .../Generated/Models/JobTargetGroup.cs | 83 + .../Models/JobTargetGroupMembershipType.cs | 60 + .../Generated/Models/JobTargetType.cs | 25 + .../Generated/Models/JobVersion.cs | 46 + .../Generated/Models/ProvisioningState.cs | 25 + .../Generated/SdkInfo_SqlManagementClient.cs | 44 +- .../Generated/SqlManagementClient.cs | 54 + src/SDKs/_metadata/sql_resource-manager.txt | 13 +- 54 files changed, 17753 insertions(+), 18 deletions(-) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobAgentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobCredentialsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetGroupsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobVersionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IJobsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/Job.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgent.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentState.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentUpdate.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobCredential.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecution.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionLifecycle.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionTarget.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobSchedule.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobScheduleType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStep.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepAction.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionSource.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepExecutionOptions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutput.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutputType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTarget.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroup.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroupMembershipType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobVersion.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProvisioningState.cs diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobAgentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobAgentsOperations.cs new file mode 100644 index 000000000000..dc06028b4471 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobAgentsOperations.cs @@ -0,0 +1,292 @@ +// +// 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; + + /// + /// JobAgentsOperations operations. + /// + public partial interface IJobAgentsOperations + { + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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 server. + /// + /// + /// 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>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be retrieved. + /// + /// + /// 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 serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be created or updated. + /// + /// + /// The requested job agent 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 serverName, string jobAgentName, JobAgent parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be deleted. + /// + /// + /// 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 serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// 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 serverName, string jobAgentName, JobAgentUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be created or updated. + /// + /// + /// The requested job agent 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 serverName, string jobAgentName, JobAgent parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be deleted. + /// + /// + /// 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 serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// 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 serverName, string jobAgentName, JobAgentUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobCredentialsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobCredentialsOperations.cs new file mode 100644 index 000000000000..2c411e4e4ba6 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobCredentialsOperations.cs @@ -0,0 +1,178 @@ +// +// 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; + + /// + /// JobCredentialsOperations operations. + /// + public partial interface IJobCredentialsOperations + { + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a jobs credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// 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 serverName, string jobAgentName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The requested job credential 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 serverName, string jobAgentName, string credentialName, JobCredential parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// 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 serverName, string jobAgentName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobExecutionsOperations.cs new file mode 100644 index 000000000000..caeaf4fdba60 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobExecutionsOperations.cs @@ -0,0 +1,393 @@ +// +// 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; + + /// + /// JobExecutionsOperations operations. + /// + public partial interface IJobExecutionsOperations + { + /// + /// Lists all executions in a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Requests cancellation of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution to cancel. + /// + /// + /// 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 CancelWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Starts an elastic job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists a job's executions. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Starts an elastic job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all executions in a job agent. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists a job's executions. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepExecutionsOperations.cs new file mode 100644 index 000000000000..ba6472843910 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepExecutionsOperations.cs @@ -0,0 +1,150 @@ +// +// 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; + + /// + /// JobStepExecutionsOperations operations. + /// + public partial interface IJobStepExecutionsOperations + { + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a step execution of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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>> ListByJobExecutionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepsOperations.cs new file mode 100644 index 000000000000..e2f428fa8e21 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobStepsOperations.cs @@ -0,0 +1,288 @@ +// +// 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; + + /// + /// JobStepsOperations operations. + /// + public partial interface IJobStepsOperations + { + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The version of the job to get. + /// + /// + /// 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>> ListByVersionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified version of a job step. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The name of the job step. + /// + /// + /// 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> GetByVersionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job step in a job's current version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job step. This will implicitly create a new + /// job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The requested state of the job step. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, string stepName, JobStep parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job step. This will implicitly create a new job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step to delete. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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>> ListByVersionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetExecutionsOperations.cs new file mode 100644 index 000000000000..fcc85a2daf87 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetExecutionsOperations.cs @@ -0,0 +1,240 @@ +// +// 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; + + /// + /// JobTargetExecutionsOperations operations. + /// + public partial interface IJobTargetExecutionsOperations + { + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// If specified, only job executions created at or after the specified + /// time are included. + /// + /// + /// If specified, only job executions created before the specified time + /// are included. + /// + /// + /// If specified, only job executions completed at or after the + /// specified time are included. + /// + /// + /// If specified, only job executions completed before the specified + /// time are included. + /// + /// + /// If specified, only active or only completed job executions are + /// included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByStepWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a target execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The target id. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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>> ListByJobExecutionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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>> ListByStepNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetGroupsOperations.cs new file mode 100644 index 000000000000..8fab528c6e99 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobTargetGroupsOperations.cs @@ -0,0 +1,178 @@ +// +// 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; + + /// + /// JobTargetGroupsOperations operations. + /// + public partial interface IJobTargetGroupsOperations + { + /// + /// Gets all target groups in an agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target 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 serverName, string jobAgentName, string targetGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The requested state of the target 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, JobTargetGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target 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 serverName, string jobAgentName, string targetGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all target groups in an agent. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobVersionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobVersionsOperations.cs new file mode 100644 index 000000000000..4b64755044ae --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobVersionsOperations.cs @@ -0,0 +1,118 @@ +// +// 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; + + /// + /// JobVersionsOperations operations. + /// + public partial interface IJobVersionsOperations + { + /// + /// Gets all versions of a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, int jobVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all versions of a job. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IJobsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobsOperations.cs new file mode 100644 index 000000000000..cd52372c7049 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IJobsOperations.cs @@ -0,0 +1,178 @@ +// +// 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; + + /// + /// JobsOperations operations. + /// + public partial interface IJobsOperations + { + /// + /// Gets a list of jobs. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The requested job 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 serverName, string jobAgentName, string jobName, Job parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to delete. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of jobs. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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 6d60f338a605..3467f110e768 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -241,6 +241,51 @@ public partial interface ISqlManagementClient : System.IDisposable /// IVirtualNetworkRulesOperations VirtualNetworkRules { get; } + /// + /// Gets the IJobAgentsOperations. + /// + IJobAgentsOperations JobAgents { get; } + + /// + /// Gets the IJobCredentialsOperations. + /// + IJobCredentialsOperations JobCredentials { get; } + + /// + /// Gets the IJobExecutionsOperations. + /// + IJobExecutionsOperations JobExecutions { get; } + + /// + /// Gets the IJobsOperations. + /// + IJobsOperations Jobs { get; } + + /// + /// Gets the IJobStepExecutionsOperations. + /// + IJobStepExecutionsOperations JobStepExecutions { get; } + + /// + /// Gets the IJobStepsOperations. + /// + IJobStepsOperations JobSteps { get; } + + /// + /// Gets the IJobTargetExecutionsOperations. + /// + IJobTargetExecutionsOperations JobTargetExecutions { get; } + + /// + /// Gets the IJobTargetGroupsOperations. + /// + IJobTargetGroupsOperations JobTargetGroups { get; } + + /// + /// Gets the IJobVersionsOperations. + /// + IJobVersionsOperations JobVersions { get; } + /// /// Gets the ILongTermRetentionBackupsOperations. /// diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperations.cs new file mode 100644 index 000000000000..1dd2de8a0187 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperations.cs @@ -0,0 +1,1351 @@ +// +// 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; + + /// + /// JobAgentsOperations operations. + /// + internal partial class JobAgentsOperations : IServiceOperations, IJobAgentsOperations + { + /// + /// Initializes a new instance of the JobAgentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobAgentsOperations(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 job agents in a server. + /// + /// + /// 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 server. + /// + /// + /// 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>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + 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("serverName", serverName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByServer", 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/servers/{serverName}/jobAgents").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _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 job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be retrieved. + /// + /// + /// 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 serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + 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/servers/{serverName}/jobAgents/{jobAgentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be deleted. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be created or updated. + /// + /// + /// The requested job agent 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 serverName, string jobAgentName, JobAgent parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + 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/servers/{serverName}/jobAgents/{jobAgentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be deleted. + /// + /// + /// 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 serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + 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/servers/{serverName}/jobAgents/{jobAgentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// 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 serverName, string jobAgentName, JobAgentUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + 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/servers/{serverName}/jobAgents/{jobAgentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 job agents in a server. + /// + /// + /// 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>> ListByServerNextWithHttpMessagesAsync(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, "ListByServerNext", 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/JobAgentsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperationsExtensions.cs new file mode 100644 index 000000000000..df77f9f2c4c0 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobAgentsOperationsExtensions.cs @@ -0,0 +1,455 @@ +// +// 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 JobAgentsOperations. + /// + public static partial class JobAgentsOperationsExtensions + { + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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 server. + /// + public static IPage ListByServer(this IJobAgentsOperations operations, string resourceGroupName, string serverName) + { + return operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of job agents in a server. + /// + /// + /// 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 server. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be retrieved. + /// + public static JobAgent Get(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be retrieved. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + public static JobAgent CreateOrUpdate(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be deleted. + /// + public static void Delete(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be updated. + /// + /// + /// The update to the job agent. + /// + public static JobAgent Update(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, serverName, jobAgentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + public static JobAgent BeginCreateOrUpdate(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be created or updated. + /// + /// + /// The requested job agent resource state. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgent parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be deleted. + /// + public static void BeginDelete(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + operations.BeginDeleteAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be deleted. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be updated. + /// + /// + /// The update to the job agent. + /// + public static JobAgent BeginUpdate(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, serverName, jobAgentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent to be updated. + /// + /// + /// The update to the job agent. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IJobAgentsOperations operations, string resourceGroupName, string serverName, string jobAgentName, JobAgentUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of job agents in a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByServerNext(this IJobAgentsOperations operations, string nextPageLink) + { + return operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of job agents in a server. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByServerNextAsync(this IJobAgentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperations.cs new file mode 100644 index 000000000000..e030fd0a0227 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperations.cs @@ -0,0 +1,1085 @@ +// +// 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; + + /// + /// JobCredentialsOperations operations. + /// + internal partial class JobCredentialsOperations : IServiceOperations, IJobCredentialsOperations + { + /// + /// Initializes a new instance of the JobCredentialsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobCredentialsOperations(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 jobs credentials. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAgent", 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/servers/{serverName}/jobAgents/{jobAgentName}/credentials").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 jobs credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// 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 serverName, string jobAgentName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (credentialName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "credentialName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("credentialName", credentialName); + 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/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); + _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 job credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The requested job credential 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string credentialName, JobCredential parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (credentialName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "credentialName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("credentialName", credentialName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); + _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) + { + 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 job credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (credentialName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "credentialName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("credentialName", credentialName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); + _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 != 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; + } + + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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, "ListByAgentNext", 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/JobCredentialsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperationsExtensions.cs new file mode 100644 index 000000000000..201d80b3efad --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobCredentialsOperationsExtensions.cs @@ -0,0 +1,272 @@ +// +// 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 JobCredentialsOperations. + /// + public static partial class JobCredentialsOperationsExtensions + { + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + public static IPage ListByAgent(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + return operations.ListByAgentAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of jobs credentials. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentAsync(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a jobs credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + public static JobCredential Get(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, credentialName).GetAwaiter().GetResult(); + } + + /// + /// Gets a jobs credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, credentialName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The requested job credential state. + /// + public static JobCredential CreateOrUpdate(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName, JobCredential parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, credentialName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The requested job credential state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName, JobCredential parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + public static void Delete(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, credentialName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job credential. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the credential. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobCredentialsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string credentialName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, credentialName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of jobs credentials. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAgentNext(this IJobCredentialsOperations operations, string nextPageLink) + { + return operations.ListByAgentNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of jobs credentials. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentNextAsync(this IJobCredentialsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperations.cs new file mode 100644 index 000000000000..f357a5b98afa --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperations.cs @@ -0,0 +1,1862 @@ +// +// 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; + + /// + /// JobExecutionsOperations operations. + /// + internal partial class JobExecutionsOperations : IServiceOperations, IJobExecutionsOperations + { + /// + /// Initializes a new instance of the JobExecutionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobExecutionsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Lists all executions in a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAgent", 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/servers/{serverName}/jobAgents/{jobAgentName}/executions").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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; + } + + /// + /// Requests cancellation of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution to cancel. + /// + /// + /// 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 CancelWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Cancel", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/cancel").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, 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; + // 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists a job's executions. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJob", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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 job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, 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("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 updatess a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/start").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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; + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, 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("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; + // 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; + } + + /// + /// Lists all executions in a job agent. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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, "ListByAgentNext", 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; + } + + /// + /// Lists a job's executions. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(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, "ListByJobNext", 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/JobExecutionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperationsExtensions.cs new file mode 100644 index 000000000000..11e6982fb153 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobExecutionsOperationsExtensions.cs @@ -0,0 +1,640 @@ +// +// 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 JobExecutionsOperations. + /// + public static partial class JobExecutionsOperationsExtensions + { + /// + /// Lists all executions in a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByAgent(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByAgentAsync(resourceGroupName, serverName, jobAgentName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists all executions in a job agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Requests cancellation of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution to cancel. + /// + public static void Cancel(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId) + { + operations.CancelAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult(); + } + + /// + /// Requests cancellation of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution to cancel. + /// + /// + /// The cancellation token. + /// + public static async Task CancelAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CancelWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + public static JobExecution Create(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.CreateAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists a job's executions. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByJob(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByJobAsync(resourceGroupName, serverName, jobAgentName, jobName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists a job's executions. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution + /// + public static JobExecution Get(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult(); + } + + /// + /// Gets a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The id of the job execution + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + public static JobExecution CreateOrUpdate(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult(); + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + public static JobExecution BeginCreate(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.BeginCreateAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Starts an elastic job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + public static JobExecution BeginCreateOrUpdate(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult(); + } + + /// + /// Creates or updatess a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The job execution id to create the job execution under. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all executions in a job agent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAgentNext(this IJobExecutionsOperations operations, string nextPageLink) + { + return operations.ListByAgentNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all executions in a job agent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentNextAsync(this IJobExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists a job's executions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobNext(this IJobExecutionsOperations operations, string nextPageLink) + { + return operations.ListByJobNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists a job's executions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobNextAsync(this IJobExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperations.cs new file mode 100644 index 000000000000..9af657b8e146 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperations.cs @@ -0,0 +1,732 @@ +// +// 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; + + /// + /// JobStepExecutionsOperations operations. + /// + internal partial class JobStepExecutionsOperations : IServiceOperations, IJobStepExecutionsOperations + { + /// + /// Initializes a new instance of the JobStepExecutionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobStepExecutionsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJobExecution", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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 step execution of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("stepName", stepName); + 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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; + } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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>> ListByJobExecutionNextWithHttpMessagesAsync(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, "ListByJobExecutionNext", 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/JobStepExecutionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperationsExtensions.cs new file mode 100644 index 000000000000..57c38c69f208 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepExecutionsOperationsExtensions.cs @@ -0,0 +1,235 @@ +// +// 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 JobStepExecutionsOperations. + /// + public static partial class JobStepExecutionsOperationsExtensions + { + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByJobExecution(this IJobStepExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByJobExecutionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobExecutionAsync(this IJobStepExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobExecutionWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a step execution of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + public static JobExecution Get(this IJobStepExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName).GetAwaiter().GetResult(); + } + + /// + /// Gets a step execution of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobStepExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobExecutionNext(this IJobStepExecutionsOperations operations, string nextPageLink) + { + return operations.ListByJobExecutionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the step executions of a job execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobExecutionNextAsync(this IJobStepExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobExecutionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperations.cs new file mode 100644 index 000000000000..1bc81f5513c0 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperations.cs @@ -0,0 +1,1740 @@ +// +// 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; + + /// + /// JobStepsOperations operations. + /// + internal partial class JobStepsOperations : IServiceOperations, IJobStepsOperations + { + /// + /// Initializes a new instance of the JobStepsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobStepsOperations(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 all job steps in the specified job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The version of the job to get. + /// + /// + /// 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>> ListByVersionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobVersion", jobVersion); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByVersion", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobVersion}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobVersion, 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("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 the specified version of a job step. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The name of the job step. + /// + /// + /// 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> GetByVersionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobVersion", jobVersion); + tracingParameters.Add("stepName", stepName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetByVersion", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobVersion}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobVersion, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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 all job steps for a job's current version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJob", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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 job step in a job's current version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("stepName", stepName); + 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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 job step. This will implicitly create a new job + /// version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The requested state of the job step. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, JobStep parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("stepName", stepName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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) + { + 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 job step. This will implicitly create a new job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step to delete. + /// + /// + /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("stepName", stepName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _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 != 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; + } + + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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>> ListByVersionNextWithHttpMessagesAsync(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, "ListByVersionNext", 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 all job steps for a job's current version. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(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, "ListByJobNext", 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/JobStepsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperationsExtensions.cs new file mode 100644 index 000000000000..1da13d7365d4 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobStepsOperationsExtensions.cs @@ -0,0 +1,458 @@ +// +// 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 JobStepsOperations. + /// + public static partial class JobStepsOperationsExtensions + { + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The version of the job to get. + /// + public static IPage ListByVersion(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) + { + return operations.ListByVersionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets all job steps in the specified job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The version of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByVersionAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByVersionWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the specified version of a job step. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The name of the job step. + /// + public static JobStep GetByVersion(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName) + { + return operations.GetByVersionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion, stepName).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified version of a job step. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The name of the job step. + /// + /// + /// The cancellation token. + /// + public static async Task GetByVersionAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, string stepName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByVersionWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion, stepName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + public static IPage ListByJob(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.ListByJobAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job step in a job's current version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + public static JobStep Get(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName).GetAwaiter().GetResult(); + } + + /// + /// Gets a job step in a job's current version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job step. This will implicitly create a new job + /// version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The requested state of the job step. + /// + public static JobStep CreateOrUpdate(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, JobStep parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job step. This will implicitly create a new job + /// version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step. + /// + /// + /// The requested state of the job step. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, JobStep parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job step. This will implicitly create a new job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step to delete. + /// + public static void Delete(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job step. This will implicitly create a new job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The name of the job step to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobStepsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, stepName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all job steps in the specified job version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByVersionNext(this IJobStepsOperations operations, string nextPageLink) + { + return operations.ListByVersionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all job steps in the specified job version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByVersionNextAsync(this IJobStepsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByVersionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobNext(this IJobStepsOperations operations, string nextPageLink) + { + return operations.ListByJobNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all job steps for a job's current version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobNextAsync(this IJobStepsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperations.cs new file mode 100644 index 000000000000..d4817fd08a08 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperations.cs @@ -0,0 +1,1197 @@ +// +// 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; + + /// + /// JobTargetExecutionsOperations operations. + /// + internal partial class JobTargetExecutionsOperations : IServiceOperations, IJobTargetExecutionsOperations + { + /// + /// Initializes a new instance of the JobTargetExecutionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobTargetExecutionsOperations(SqlManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SqlManagementClient + /// + public SqlManagementClient Client { get; private set; } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByJobExecutionWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJobExecution", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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; + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// 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>> ListByStepWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("stepName", stepName); + tracingParameters.Add("createTimeMin", createTimeMin); + tracingParameters.Add("createTimeMax", createTimeMax); + tracingParameters.Add("endTimeMin", endTimeMin); + tracingParameters.Add("endTimeMax", endTimeMax); + tracingParameters.Add("isActive", isActive); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByStep", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (createTimeMin != null) + { + _queryParameters.Add(string.Format("createTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (createTimeMax != null) + { + _queryParameters.Add(string.Format("createTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(createTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMin != null) + { + _queryParameters.Add(string.Format("endTimeMin={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMin, Client.SerializationSettings).Trim('"')))); + } + if (endTimeMax != null) + { + _queryParameters.Add(string.Format("endTimeMax={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(endTimeMax, Client.SerializationSettings).Trim('"')))); + } + if (isActive != null) + { + _queryParameters.Add(string.Format("isActive={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(isActive, Client.SerializationSettings).Trim('"')))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + 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 target execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The target id. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + if (stepName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "stepName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobExecutionId", jobExecutionId); + tracingParameters.Add("stepName", stepName); + tracingParameters.Add("targetId", targetId); + 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobExecutionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobExecutionId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{stepName}", System.Uri.EscapeDataString(stepName)); + _url = _url.Replace("{targetId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(targetId, 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("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; + } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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>> ListByJobExecutionNextWithHttpMessagesAsync(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, "ListByJobExecutionNext", 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; + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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>> ListByStepNextWithHttpMessagesAsync(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, "ListByStepNext", 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/JobTargetExecutionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperationsExtensions.cs new file mode 100644 index 000000000000..98b6476e6199 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetExecutionsOperationsExtensions.cs @@ -0,0 +1,391 @@ +// +// 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 JobTargetExecutionsOperations. + /// + public static partial class JobTargetExecutionsOperationsExtensions + { + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByJobExecution(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByJobExecutionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobExecutionAsync(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobExecutionWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + public static IPage ListByStep(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?)) + { + return operations.ListByStepAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// If specified, only job executions created at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions created before the specified time are + /// included. + /// + /// + /// If specified, only job executions completed at or after the specified time + /// are included. + /// + /// + /// If specified, only job executions completed before the specified time are + /// included. + /// + /// + /// If specified, only active or only completed job executions are included. + /// + /// + /// The number of elements in the collection to skip. + /// + /// + /// The number of elements to return from the collection. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByStepAsync(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime? createTimeMin = default(System.DateTime?), System.DateTime? createTimeMax = default(System.DateTime?), System.DateTime? endTimeMin = default(System.DateTime?), System.DateTime? endTimeMax = default(System.DateTime?), bool? isActive = default(bool?), int? skip = default(int?), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByStepWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a target execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The target id. + /// + public static JobExecution Get(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, targetId).GetAwaiter().GetResult(); + } + + /// + /// Gets a target execution. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The unique id of the job execution + /// + /// + /// The name of the step. + /// + /// + /// The target id. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, targetId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobExecutionNext(this IJobTargetExecutionsOperations operations, string nextPageLink) + { + return operations.ListByJobExecutionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists target executions for all steps of a job execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobExecutionNextAsync(this IJobTargetExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobExecutionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByStepNext(this IJobTargetExecutionsOperations operations, string nextPageLink) + { + return operations.ListByStepNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the target executions of a job step execution. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByStepNextAsync(this IJobTargetExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByStepNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperations.cs new file mode 100644 index 000000000000..38240af52680 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperations.cs @@ -0,0 +1,1085 @@ +// +// 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; + + /// + /// JobTargetGroupsOperations operations. + /// + internal partial class JobTargetGroupsOperations : IServiceOperations, IJobTargetGroupsOperations + { + /// + /// Initializes a new instance of the JobTargetGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobTargetGroupsOperations(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 all target groups in an agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAgent", 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/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target 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 serverName, string jobAgentName, string targetGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (targetGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "targetGroupName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("targetGroupName", targetGroupName); + 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/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{targetGroupName}", System.Uri.EscapeDataString(targetGroupName)); + _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 target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The requested state of the target 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, JobTargetGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (targetGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "targetGroupName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("targetGroupName", targetGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{targetGroupName}", System.Uri.EscapeDataString(targetGroupName)); + _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) + { + 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 target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (targetGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "targetGroupName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("targetGroupName", targetGroupName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{targetGroupName}", System.Uri.EscapeDataString(targetGroupName)); + _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 != 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; + } + + /// + /// Gets all target groups in an agent. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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, "ListByAgentNext", 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/JobTargetGroupsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperationsExtensions.cs new file mode 100644 index 000000000000..21cc86013942 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobTargetGroupsOperationsExtensions.cs @@ -0,0 +1,272 @@ +// +// 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 JobTargetGroupsOperations. + /// + public static partial class JobTargetGroupsOperationsExtensions + { + /// + /// Gets all target groups in an agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + public static IPage ListByAgent(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + return operations.ListByAgentAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Gets all target groups in an agent. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentAsync(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target group. + /// + public static JobTargetGroup Get(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, targetGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, targetGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The requested state of the target group. + /// + public static JobTargetGroup CreateOrUpdate(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, JobTargetGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, targetGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The requested state of the target group. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, JobTargetGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, targetGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target group. + /// + public static void Delete(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, targetGroupName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a target 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the target group. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobTargetGroupsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, targetGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all target groups in an agent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAgentNext(this IJobTargetGroupsOperations operations, string nextPageLink) + { + return operations.ListByAgentNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all target groups in an agent. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentNextAsync(this IJobTargetGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperations.cs new file mode 100644 index 000000000000..95c25514ce53 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperations.cs @@ -0,0 +1,658 @@ +// +// 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; + + /// + /// JobVersionsOperations operations. + /// + internal partial class JobVersionsOperations : IServiceOperations, IJobVersionsOperations + { + /// + /// Initializes a new instance of the JobVersionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobVersionsOperations(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 all versions of a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByJob", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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 job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, int jobVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("jobVersion", jobVersion); + 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _url = _url.Replace("{jobVersion}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobVersion, 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("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 all versions of a job. + /// + /// + /// 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>> ListByJobNextWithHttpMessagesAsync(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, "ListByJobNext", 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/JobVersionsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperationsExtensions.cs new file mode 100644 index 000000000000..c43416b642a1 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobVersionsOperationsExtensions.cs @@ -0,0 +1,173 @@ +// +// 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 JobVersionsOperations. + /// + public static partial class JobVersionsOperationsExtensions + { + /// + /// Gets all versions of a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + public static IPage ListByJob(this IJobVersionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.ListByJobAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Gets all versions of a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobAsync(this IJobVersionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + public static JobVersion Get(this IJobVersionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets a job version. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job. + /// + /// + /// The version of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobVersionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, int jobVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all versions of a job. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByJobNext(this IJobVersionsOperations operations, string nextPageLink) + { + return operations.ListByJobNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all versions of a job. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByJobNextAsync(this IJobVersionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByJobNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperations.cs new file mode 100644 index 000000000000..c332ef3b62ae --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperations.cs @@ -0,0 +1,1081 @@ +// +// 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; + + /// + /// JobsOperations operations. + /// + internal partial class JobsOperations : IServiceOperations, IJobsOperations + { + /// + /// Initializes a new instance of the JobsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal JobsOperations(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 jobs. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// 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>> ListByAgentWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByAgent", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _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 job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// 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 serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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 job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The requested job 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Job parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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) + { + 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 job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to delete. + /// + /// + /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string jobAgentName, string jobName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (jobAgentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobAgentName"); + } + if (jobName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "jobName"); + } + 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("serverName", serverName); + tracingParameters.Add("jobAgentName", jobAgentName); + tracingParameters.Add("jobName", jobName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{jobAgentName}", System.Uri.EscapeDataString(jobAgentName)); + _url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName)); + _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 != 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; + } + + /// + /// Gets a list of jobs. + /// + /// + /// 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>> ListByAgentNextWithHttpMessagesAsync(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, "ListByAgentNext", 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/JobsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperationsExtensions.cs new file mode 100644 index 000000000000..2382754e9bea --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/JobsOperationsExtensions.cs @@ -0,0 +1,272 @@ +// +// 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 JobsOperations. + /// + public static partial class JobsOperationsExtensions + { + /// + /// Gets a list of jobs. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + public static IPage ListByAgent(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName) + { + return operations.ListByAgentAsync(resourceGroupName, serverName, jobAgentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of jobs. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + public static Job Get(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + return operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Gets a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The requested job state. + /// + public static Job CreateOrUpdate(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, Job parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to get. + /// + /// + /// The requested job state. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, Job parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to delete. + /// + public static void Delete(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a job. + /// + /// + /// 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 server. + /// + /// + /// The name of the job agent. + /// + /// + /// The name of the job to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a list of jobs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByAgentNext(this IJobsOperations operations, string nextPageLink) + { + return operations.ListByAgentNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of jobs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByAgentNextAsync(this IJobsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByAgentNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Job.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Job.cs new file mode 100644 index 000000000000..f8308d23d084 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/Job.cs @@ -0,0 +1,75 @@ +// +// 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.Linq; + + /// + /// A job. + /// + [Rest.Serialization.JsonTransformation] + public partial class Job : ProxyResource + { + /// + /// Initializes a new instance of the Job class. + /// + public Job() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Job class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// User-defined description of the + /// job. + /// The job version number. + /// Schedule properties of the job. + public Job(string id = default(string), string name = default(string), string type = default(string), string description = default(string), int? version = default(int?), JobSchedule schedule = default(JobSchedule)) + : base(id, name, type) + { + Description = description; + Version = version; + Schedule = schedule; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets user-defined description of the job. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets the job version number. + /// + [JsonProperty(PropertyName = "properties.version")] + public int? Version { get; private set; } + + /// + /// Gets or sets schedule properties of the job. + /// + [JsonProperty(PropertyName = "properties.schedule")] + public JobSchedule Schedule { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgent.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgent.cs new file mode 100644 index 000000000000..fe6f269eab8a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgent.cs @@ -0,0 +1,100 @@ +// +// 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 job agent. + /// + [Rest.Serialization.JsonTransformation] + public partial class JobAgent : TrackedResource + { + /// + /// Initializes a new instance of the JobAgent class. + /// + public JobAgent() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobAgent class. + /// + /// Resource location. + /// Resource ID of the database to store job + /// metadata in. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource tags. + /// The name and tier of the SKU. + /// The state of the job agent. Possible values + /// include: 'Creating', 'Ready', 'Updating', 'Deleting', + /// 'Disabled' + public JobAgent(string location, string databaseId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string state = default(string)) + : base(location, id, name, type, tags) + { + Sku = sku; + DatabaseId = databaseId; + State = state; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name and tier of the SKU. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets resource ID of the database to store job metadata in. + /// + [JsonProperty(PropertyName = "properties.databaseId")] + public string DatabaseId { get; set; } + + /// + /// Gets the state of the job agent. Possible values include: + /// 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (DatabaseId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DatabaseId"); + } + if (Sku != null) + { + Sku.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentState.cs new file mode 100644 index 000000000000..b8897f53cb79 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentState.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 JobAgentState. + /// + public static class JobAgentState + { + public const string Creating = "Creating"; + public const string Ready = "Ready"; + public const string Updating = "Updating"; + public const string Deleting = "Deleting"; + public const string Disabled = "Disabled"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentUpdate.cs new file mode 100644 index 000000000000..f0a908f10564 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobAgentUpdate.cs @@ -0,0 +1,53 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An update to an Azure SQL job agent. + /// + public partial class JobAgentUpdate + { + /// + /// Initializes a new instance of the JobAgentUpdate class. + /// + public JobAgentUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobAgentUpdate class. + /// + /// Resource tags. + public JobAgentUpdate(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobCredential.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobCredential.cs new file mode 100644 index 000000000000..5d91d4bddf99 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobCredential.cs @@ -0,0 +1,84 @@ +// +// 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.Linq; + + /// + /// A stored credential that can be used by a job to connect to target + /// databases. + /// + [Rest.Serialization.JsonTransformation] + public partial class JobCredential : ProxyResource + { + /// + /// Initializes a new instance of the JobCredential class. + /// + public JobCredential() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobCredential class. + /// + /// The credential user name. + /// The credential password. + /// Resource ID. + /// Resource name. + /// Resource type. + public JobCredential(string username, string password, string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + Username = username; + Password = password; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the credential user name. + /// + [JsonProperty(PropertyName = "properties.username")] + public string Username { get; set; } + + /// + /// Gets or sets the credential password. + /// + [JsonProperty(PropertyName = "properties.password")] + public string Password { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Username == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Username"); + } + if (Password == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Password"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecution.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecution.cs new file mode 100644 index 000000000000..39c3e70baf2c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecution.cs @@ -0,0 +1,172 @@ +// +// 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.Linq; + + /// + /// An execution of a job + /// + [Rest.Serialization.JsonTransformation] + public partial class JobExecution : ProxyResource + { + /// + /// Initializes a new instance of the JobExecution class. + /// + public JobExecution() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobExecution class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The job version number. + /// The job step name. + /// The job step id. + /// The unique identifier of the job + /// execution. + /// The detailed state of the job execution. + /// Possible values include: 'Created', 'InProgress', + /// 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', + /// 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', + /// 'Skipped' + /// The ARM provisioning state of the + /// job execution. Possible values include: 'Created', 'InProgress', + /// 'Succeeded', 'Failed', 'Canceled' + /// The time that the job execution was + /// created. + /// The time that the job execution + /// started. + /// The time that the job execution + /// completed. + /// Number of times the job execution has + /// been attempted. + /// Start time of the current + /// attempt. + /// The last status or error message. + /// The target that this execution is executed + /// on. + public JobExecution(string id = default(string), string name = default(string), string type = default(string), int? jobVersion = default(int?), string stepName = default(string), int? stepId = default(int?), System.Guid? jobExecutionId = default(System.Guid?), string lifecycle = default(string), string provisioningState = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), int? currentAttempts = default(int?), System.DateTime? currentAttemptStartTime = default(System.DateTime?), string lastMessage = default(string), JobExecutionTarget target = default(JobExecutionTarget)) + : base(id, name, type) + { + JobVersion = jobVersion; + StepName = stepName; + StepId = stepId; + JobExecutionId = jobExecutionId; + Lifecycle = lifecycle; + ProvisioningState = provisioningState; + CreateTime = createTime; + StartTime = startTime; + EndTime = endTime; + CurrentAttempts = currentAttempts; + CurrentAttemptStartTime = currentAttemptStartTime; + LastMessage = lastMessage; + Target = target; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the job version number. + /// + [JsonProperty(PropertyName = "properties.jobVersion")] + public int? JobVersion { get; private set; } + + /// + /// Gets the job step name. + /// + [JsonProperty(PropertyName = "properties.stepName")] + public string StepName { get; private set; } + + /// + /// Gets the job step id. + /// + [JsonProperty(PropertyName = "properties.stepId")] + public int? StepId { get; private set; } + + /// + /// Gets the unique identifier of the job execution. + /// + [JsonProperty(PropertyName = "properties.jobExecutionId")] + public System.Guid? JobExecutionId { get; private set; } + + /// + /// Gets the detailed state of the job execution. Possible values + /// include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', + /// 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', + /// 'TimedOut', 'Canceled', 'Skipped' + /// + [JsonProperty(PropertyName = "properties.lifecycle")] + public string Lifecycle { get; private set; } + + /// + /// Gets the ARM provisioning state of the job execution. Possible + /// values include: 'Created', 'InProgress', 'Succeeded', 'Failed', + /// 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets the time that the job execution was created. + /// + [JsonProperty(PropertyName = "properties.createTime")] + public System.DateTime? CreateTime { get; private set; } + + /// + /// Gets the time that the job execution started. + /// + [JsonProperty(PropertyName = "properties.startTime")] + public System.DateTime? StartTime { get; private set; } + + /// + /// Gets the time that the job execution completed. + /// + [JsonProperty(PropertyName = "properties.endTime")] + public System.DateTime? EndTime { get; private set; } + + /// + /// Gets or sets number of times the job execution has been attempted. + /// + [JsonProperty(PropertyName = "properties.currentAttempts")] + public int? CurrentAttempts { get; set; } + + /// + /// Gets start time of the current attempt. + /// + [JsonProperty(PropertyName = "properties.currentAttemptStartTime")] + public System.DateTime? CurrentAttemptStartTime { get; private set; } + + /// + /// Gets the last status or error message. + /// + [JsonProperty(PropertyName = "properties.lastMessage")] + public string LastMessage { get; private set; } + + /// + /// Gets the target that this execution is executed on. + /// + [JsonProperty(PropertyName = "properties.target")] + public JobExecutionTarget Target { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionLifecycle.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionLifecycle.cs new file mode 100644 index 000000000000..37ead7ce7ff5 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionLifecycle.cs @@ -0,0 +1,30 @@ +// +// 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 JobExecutionLifecycle. + /// + public static class JobExecutionLifecycle + { + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string WaitingForChildJobExecutions = "WaitingForChildJobExecutions"; + public const string WaitingForRetry = "WaitingForRetry"; + public const string Succeeded = "Succeeded"; + public const string SucceededWithSkipped = "SucceededWithSkipped"; + public const string Failed = "Failed"; + public const string TimedOut = "TimedOut"; + public const string Canceled = "Canceled"; + public const string Skipped = "Skipped"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionTarget.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionTarget.cs new file mode 100644 index 000000000000..6b7e1dff02e8 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobExecutionTarget.cs @@ -0,0 +1,71 @@ +// +// 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; + + /// + /// The target that a job execution is executed on. + /// + public partial class JobExecutionTarget + { + /// + /// Initializes a new instance of the JobExecutionTarget class. + /// + public JobExecutionTarget() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobExecutionTarget class. + /// + /// The type of the target. Possible values include: + /// 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + /// 'SqlServer' + /// The server name. + /// The database name. + public JobExecutionTarget(string type = default(string), string serverName = default(string), string databaseName = default(string)) + { + Type = type; + ServerName = serverName; + DatabaseName = databaseName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the type of the target. Possible values include: + /// 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + /// 'SqlServer' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the server name. + /// + [JsonProperty(PropertyName = "serverName")] + public string ServerName { get; private set; } + + /// + /// Gets the database name. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobSchedule.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobSchedule.cs new file mode 100644 index 000000000000..c108f887dbb1 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobSchedule.cs @@ -0,0 +1,88 @@ +// +// 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; + + /// + /// Scheduling properties of a job. + /// + public partial class JobSchedule + { + /// + /// Initializes a new instance of the JobSchedule class. + /// + public JobSchedule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobSchedule class. + /// + /// Schedule start time. + /// Schedule end time. + /// Schedule interval type. Possible values include: + /// 'Once', 'Recurring' + /// Whether or not the schedule is + /// enabled. + /// Value of the schedule's recurring interval, + /// if the scheduletype is recurring. ISO8601 duration format. + public JobSchedule(System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), JobScheduleType? type = default(JobScheduleType?), bool? enabled = default(bool?), string interval = default(string)) + { + StartTime = startTime; + EndTime = endTime; + Type = type; + Enabled = enabled; + Interval = interval; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets schedule start time. + /// + [JsonProperty(PropertyName = "startTime")] + public System.DateTime? StartTime { get; set; } + + /// + /// Gets or sets schedule end time. + /// + [JsonProperty(PropertyName = "endTime")] + public System.DateTime? EndTime { get; set; } + + /// + /// Gets or sets schedule interval type. Possible values include: + /// 'Once', 'Recurring' + /// + [JsonProperty(PropertyName = "type")] + public JobScheduleType? Type { get; set; } + + /// + /// Gets or sets whether or not the schedule is enabled. + /// + [JsonProperty(PropertyName = "enabled")] + public bool? Enabled { get; set; } + + /// + /// Gets or sets value of the schedule's recurring interval, if the + /// scheduletype is recurring. ISO8601 duration format. + /// + [JsonProperty(PropertyName = "interval")] + public string Interval { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobScheduleType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobScheduleType.cs new file mode 100644 index 000000000000..502616c442b8 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobScheduleType.cs @@ -0,0 +1,60 @@ +// +// 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 Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for JobScheduleType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum JobScheduleType + { + [EnumMember(Value = "Once")] + Once, + [EnumMember(Value = "Recurring")] + Recurring + } + internal static class JobScheduleTypeEnumExtension + { + internal static string ToSerializedValue(this JobScheduleType? value) + { + return value == null ? null : ((JobScheduleType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this JobScheduleType value) + { + switch( value ) + { + case JobScheduleType.Once: + return "Once"; + case JobScheduleType.Recurring: + return "Recurring"; + } + return null; + } + + internal static JobScheduleType? ParseJobScheduleType(this string value) + { + switch( value ) + { + case "Once": + return JobScheduleType.Once; + case "Recurring": + return JobScheduleType.Recurring; + } + return null; + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStep.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStep.cs new file mode 100644 index 000000000000..3388af588093 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStep.cs @@ -0,0 +1,139 @@ +// +// 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.Linq; + + /// + /// A job step. + /// + [Rest.Serialization.JsonTransformation] + public partial class JobStep : ProxyResource + { + /// + /// Initializes a new instance of the JobStep class. + /// + public JobStep() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobStep class. + /// + /// The resource ID of the target group that + /// the job step will be executed on. + /// The resource ID of the job credential that + /// will be used to connect to the targets. + /// The action payload of the job step. + /// Resource ID. + /// Resource name. + /// Resource type. + /// The job step's index within the job. If not + /// specified when creating the job step, it will be created as the + /// last step. If not specified when updating the job step, the step id + /// is not modified. + /// Output destination properties of the job + /// step. + /// Execution options for the job + /// step. + public JobStep(string targetGroup, string credential, JobStepAction action, string id = default(string), string name = default(string), string type = default(string), int? stepId = default(int?), JobStepOutput output = default(JobStepOutput), JobStepExecutionOptions executionOptions = default(JobStepExecutionOptions)) + : base(id, name, type) + { + StepId = stepId; + TargetGroup = targetGroup; + Credential = credential; + Action = action; + Output = output; + ExecutionOptions = executionOptions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the job step's index within the job. If not specified + /// when creating the job step, it will be created as the last step. If + /// not specified when updating the job step, the step id is not + /// modified. + /// + [JsonProperty(PropertyName = "properties.stepId")] + public int? StepId { get; set; } + + /// + /// Gets or sets the resource ID of the target group that the job step + /// will be executed on. + /// + [JsonProperty(PropertyName = "properties.targetGroup")] + public string TargetGroup { get; set; } + + /// + /// Gets or sets the resource ID of the job credential that will be + /// used to connect to the targets. + /// + [JsonProperty(PropertyName = "properties.credential")] + public string Credential { get; set; } + + /// + /// Gets or sets the action payload of the job step. + /// + [JsonProperty(PropertyName = "properties.action")] + public JobStepAction Action { get; set; } + + /// + /// Gets or sets output destination properties of the job step. + /// + [JsonProperty(PropertyName = "properties.output")] + public JobStepOutput Output { get; set; } + + /// + /// Gets or sets execution options for the job step. + /// + [JsonProperty(PropertyName = "properties.executionOptions")] + public JobStepExecutionOptions ExecutionOptions { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TargetGroup == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetGroup"); + } + if (Credential == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Credential"); + } + if (Action == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Action"); + } + if (Action != null) + { + Action.Validate(); + } + if (Output != null) + { + Output.Validate(); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepAction.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepAction.cs new file mode 100644 index 000000000000..51941a310406 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepAction.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// 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; + + /// + /// The action to be executed by a job step. + /// + public partial class JobStepAction + { + /// + /// Initializes a new instance of the JobStepAction class. + /// + public JobStepAction() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobStepAction class. + /// + /// The action value, for example the text of the + /// T-SQL script to execute. + /// Type of action being executed by the job step. + /// Possible values include: 'TSql' + /// The source of the action to execute. Possible + /// values include: 'Inline' + public JobStepAction(string value, string type = default(string), string source = default(string)) + { + Type = type; + Source = source; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets type of action being executed by the job step. + /// Possible values include: 'TSql' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the source of the action to execute. Possible values + /// include: 'Inline' + /// + [JsonProperty(PropertyName = "source")] + public string Source { get; set; } + + /// + /// Gets or sets the action value, for example the text of the T-SQL + /// script to execute. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionSource.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionSource.cs new file mode 100644 index 000000000000..2f96d3a39604 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionSource.cs @@ -0,0 +1,21 @@ +// +// 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 JobStepActionSource. + /// + public static class JobStepActionSource + { + public const string Inline = "Inline"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionType.cs new file mode 100644 index 000000000000..6dda291ff321 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepActionType.cs @@ -0,0 +1,21 @@ +// +// 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 JobStepActionType. + /// + public static class JobStepActionType + { + public const string TSql = "TSql"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepExecutionOptions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepExecutionOptions.cs new file mode 100644 index 000000000000..bfc1c11a276a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepExecutionOptions.cs @@ -0,0 +1,90 @@ +// +// 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; + + /// + /// The execution options of a job step. + /// + public partial class JobStepExecutionOptions + { + /// + /// Initializes a new instance of the JobStepExecutionOptions class. + /// + public JobStepExecutionOptions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobStepExecutionOptions class. + /// + /// Execution timeout for the job + /// step. + /// Maximum number of times the job step + /// will be reattempted if the first attempt fails. + /// Initial delay between + /// retries for job step execution. + /// The maximum amount of + /// time to wait between retries for job step execution. + /// The backoff multiplier + /// for the time between retries. + public JobStepExecutionOptions(int? timeoutSeconds = default(int?), int? retryAttempts = default(int?), int? initialRetryIntervalSeconds = default(int?), int? maximumRetryIntervalSeconds = default(int?), double? retryIntervalBackoffMultiplier = default(double?)) + { + TimeoutSeconds = timeoutSeconds; + RetryAttempts = retryAttempts; + InitialRetryIntervalSeconds = initialRetryIntervalSeconds; + MaximumRetryIntervalSeconds = maximumRetryIntervalSeconds; + RetryIntervalBackoffMultiplier = retryIntervalBackoffMultiplier; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets execution timeout for the job step. + /// + [JsonProperty(PropertyName = "timeoutSeconds")] + public int? TimeoutSeconds { get; set; } + + /// + /// Gets or sets maximum number of times the job step will be + /// reattempted if the first attempt fails. + /// + [JsonProperty(PropertyName = "retryAttempts")] + public int? RetryAttempts { get; set; } + + /// + /// Gets or sets initial delay between retries for job step execution. + /// + [JsonProperty(PropertyName = "initialRetryIntervalSeconds")] + public int? InitialRetryIntervalSeconds { get; set; } + + /// + /// Gets or sets the maximum amount of time to wait between retries for + /// job step execution. + /// + [JsonProperty(PropertyName = "maximumRetryIntervalSeconds")] + public int? MaximumRetryIntervalSeconds { get; set; } + + /// + /// Gets or sets the backoff multiplier for the time between retries. + /// + [JsonProperty(PropertyName = "retryIntervalBackoffMultiplier")] + public double? RetryIntervalBackoffMultiplier { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutput.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutput.cs new file mode 100644 index 000000000000..cdd0db7bec05 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutput.cs @@ -0,0 +1,140 @@ +// +// 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; + + /// + /// The output configuration of a job step. + /// + public partial class JobStepOutput + { + /// + /// Initializes a new instance of the JobStepOutput class. + /// + public JobStepOutput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobStepOutput class. + /// + /// The output destination server + /// name. + /// The output destination database. + /// The output destination table. + /// The resource ID of the credential to use + /// to connect to the output destination. + /// The output destination type. Possible values + /// include: 'SqlDatabase' + /// The output destination subscription + /// id. + /// The output destination resource + /// group. + /// The output destination schema. + public JobStepOutput(string serverName, string databaseName, string tableName, string credential, string type = default(string), System.Guid? subscriptionId = default(System.Guid?), string resourceGroupName = default(string), string schemaName = default(string)) + { + Type = type; + SubscriptionId = subscriptionId; + ResourceGroupName = resourceGroupName; + ServerName = serverName; + DatabaseName = databaseName; + SchemaName = schemaName; + TableName = tableName; + Credential = credential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the output destination type. Possible values include: + /// 'SqlDatabase' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the output destination subscription id. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public System.Guid? SubscriptionId { get; set; } + + /// + /// Gets or sets the output destination resource group. + /// + [JsonProperty(PropertyName = "resourceGroupName")] + public string ResourceGroupName { get; set; } + + /// + /// Gets or sets the output destination server name. + /// + [JsonProperty(PropertyName = "serverName")] + public string ServerName { get; set; } + + /// + /// Gets or sets the output destination database. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; set; } + + /// + /// Gets or sets the output destination schema. + /// + [JsonProperty(PropertyName = "schemaName")] + public string SchemaName { get; set; } + + /// + /// Gets or sets the output destination table. + /// + [JsonProperty(PropertyName = "tableName")] + public string TableName { get; set; } + + /// + /// Gets or sets the resource ID of the credential to use to connect to + /// the output destination. + /// + [JsonProperty(PropertyName = "credential")] + public string Credential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ServerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ServerName"); + } + if (DatabaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DatabaseName"); + } + if (TableName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TableName"); + } + if (Credential == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Credential"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutputType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutputType.cs new file mode 100644 index 000000000000..bb86c8126657 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobStepOutputType.cs @@ -0,0 +1,21 @@ +// +// 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 JobStepOutputType. + /// + public static class JobStepOutputType + { + public const string SqlDatabase = "SqlDatabase"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTarget.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTarget.cs new file mode 100644 index 000000000000..7d03cc175e67 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTarget.cs @@ -0,0 +1,125 @@ +// +// 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; + + /// + /// A job target, for example a specific database or a container of + /// databases that is evaluated during job execution. + /// + public partial class JobTarget + { + /// + /// Initializes a new instance of the JobTarget class. + /// + public JobTarget() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobTarget class. + /// + /// The target type. Possible values include: + /// 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + /// 'SqlServer' + /// Whether the target is included or + /// excluded from the group. Possible values include: 'Include', + /// 'Exclude' + /// The target server name. + /// The target database name. + /// The target elastic pool name. + /// The target shard map. + /// The resource ID of the credential + /// that is used during job execution to connect to the target and + /// determine the list of databases inside the target. + public JobTarget(string type, JobTargetGroupMembershipType? membershipType = default(JobTargetGroupMembershipType?), string serverName = default(string), string databaseName = default(string), string elasticPoolName = default(string), string shardMapName = default(string), string refreshCredential = default(string)) + { + MembershipType = membershipType; + Type = type; + ServerName = serverName; + DatabaseName = databaseName; + ElasticPoolName = elasticPoolName; + ShardMapName = shardMapName; + RefreshCredential = refreshCredential; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets whether the target is included or excluded from the + /// group. Possible values include: 'Include', 'Exclude' + /// + [JsonProperty(PropertyName = "membershipType")] + public JobTargetGroupMembershipType? MembershipType { get; set; } + + /// + /// Gets or sets the target type. Possible values include: + /// 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + /// 'SqlServer' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the target server name. + /// + [JsonProperty(PropertyName = "serverName")] + public string ServerName { get; set; } + + /// + /// Gets or sets the target database name. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; set; } + + /// + /// Gets or sets the target elastic pool name. + /// + [JsonProperty(PropertyName = "elasticPoolName")] + public string ElasticPoolName { get; set; } + + /// + /// Gets or sets the target shard map. + /// + [JsonProperty(PropertyName = "shardMapName")] + public string ShardMapName { get; set; } + + /// + /// Gets or sets the resource ID of the credential that is used during + /// job execution to connect to the target and determine the list of + /// databases inside the target. + /// + [JsonProperty(PropertyName = "refreshCredential")] + public string RefreshCredential { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroup.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroup.cs new file mode 100644 index 000000000000..3269ee0c6e4f --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroup.cs @@ -0,0 +1,83 @@ +// +// 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 group of job targets. + /// + [Rest.Serialization.JsonTransformation] + public partial class JobTargetGroup : ProxyResource + { + /// + /// Initializes a new instance of the JobTargetGroup class. + /// + public JobTargetGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobTargetGroup class. + /// + /// Members of the target group. + /// Resource ID. + /// Resource name. + /// Resource type. + public JobTargetGroup(IList members, string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + Members = members; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets members of the target group. + /// + [JsonProperty(PropertyName = "properties.members")] + public IList Members { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Members == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Members"); + } + if (Members != null) + { + foreach (var element in Members) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroupMembershipType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroupMembershipType.cs new file mode 100644 index 000000000000..91069e0c3204 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetGroupMembershipType.cs @@ -0,0 +1,60 @@ +// +// 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 Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for JobTargetGroupMembershipType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum JobTargetGroupMembershipType + { + [EnumMember(Value = "Include")] + Include, + [EnumMember(Value = "Exclude")] + Exclude + } + internal static class JobTargetGroupMembershipTypeEnumExtension + { + internal static string ToSerializedValue(this JobTargetGroupMembershipType? value) + { + return value == null ? null : ((JobTargetGroupMembershipType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this JobTargetGroupMembershipType value) + { + switch( value ) + { + case JobTargetGroupMembershipType.Include: + return "Include"; + case JobTargetGroupMembershipType.Exclude: + return "Exclude"; + } + return null; + } + + internal static JobTargetGroupMembershipType? ParseJobTargetGroupMembershipType(this string value) + { + switch( value ) + { + case "Include": + return JobTargetGroupMembershipType.Include; + case "Exclude": + return JobTargetGroupMembershipType.Exclude; + } + return null; + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetType.cs new file mode 100644 index 000000000000..bf3921ce5ec0 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobTargetType.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 JobTargetType. + /// + public static class JobTargetType + { + public const string TargetGroup = "TargetGroup"; + public const string SqlDatabase = "SqlDatabase"; + public const string SqlElasticPool = "SqlElasticPool"; + public const string SqlShardMap = "SqlShardMap"; + public const string SqlServer = "SqlServer"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobVersion.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobVersion.cs new file mode 100644 index 000000000000..0ce703009296 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/JobVersion.cs @@ -0,0 +1,46 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// 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 System.Linq; + + /// + /// A job version. + /// + public partial class JobVersion : ProxyResource + { + /// + /// Initializes a new instance of the JobVersion class. + /// + public JobVersion() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobVersion class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + public JobVersion(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProvisioningState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..86dff5006da9 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ProvisioningState.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 ProvisioningState. + /// + public static class ProvisioningState + { + public const string Created = "Created"; + public const string InProgress = "InProgress"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index be9133307496..60816295aed7 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs @@ -1,16 +1,24 @@ -using System; -using System.Collections.Generic; -using System.Linq; +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// -internal static partial class SdkInfo +namespace Microsoft.Azure.Management.Sql { - public static IEnumerable> ApiInfo_SqlManagementClient - { - get - { - return new Tuple[] - { + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_SqlManagementClient + { + get + { + return new Tuple[] + { new Tuple("Sql", "BackupLongTermRetentionPolicies", "2017-03-01-preview"), new Tuple("Sql", "Capabilities", "2017-10-01-preview"), new Tuple("Sql", "DataMaskingPolicies", "2014-04-01"), @@ -32,6 +40,15 @@ public static IEnumerable> ApiInfo_SqlManagementCl 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", "JobAgents", "2017-03-01-preview"), + new Tuple("Sql", "JobCredentials", "2017-03-01-preview"), + new Tuple("Sql", "JobExecutions", "2017-03-01-preview"), + new Tuple("Sql", "JobStepExecutions", "2017-03-01-preview"), + new Tuple("Sql", "JobSteps", "2017-03-01-preview"), + new Tuple("Sql", "JobTargetExecutions", "2017-03-01-preview"), + new Tuple("Sql", "JobTargetGroups", "2017-03-01-preview"), + new Tuple("Sql", "JobVersions", "2017-03-01-preview"), + new Tuple("Sql", "Jobs", "2017-03-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"), @@ -59,7 +76,8 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "TransparentDataEncryptionActivities", "2014-04-01"), new Tuple("Sql", "TransparentDataEncryptions", "2014-04-01"), new Tuple("Sql", "VirtualNetworkRules", "2015-05-01-preview"), - }.AsEnumerable(); - } - } + }.AsEnumerable(); + } + } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index de51d7d21b0c..56f37bfed691 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -246,6 +246,51 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IVirtualNetworkRulesOperations VirtualNetworkRules { get; private set; } + /// + /// Gets the IJobAgentsOperations. + /// + public virtual IJobAgentsOperations JobAgents { get; private set; } + + /// + /// Gets the IJobCredentialsOperations. + /// + public virtual IJobCredentialsOperations JobCredentials { get; private set; } + + /// + /// Gets the IJobExecutionsOperations. + /// + public virtual IJobExecutionsOperations JobExecutions { get; private set; } + + /// + /// Gets the IJobsOperations. + /// + public virtual IJobsOperations Jobs { get; private set; } + + /// + /// Gets the IJobStepExecutionsOperations. + /// + public virtual IJobStepExecutionsOperations JobStepExecutions { get; private set; } + + /// + /// Gets the IJobStepsOperations. + /// + public virtual IJobStepsOperations JobSteps { get; private set; } + + /// + /// Gets the IJobTargetExecutionsOperations. + /// + public virtual IJobTargetExecutionsOperations JobTargetExecutions { get; private set; } + + /// + /// Gets the IJobTargetGroupsOperations. + /// + public virtual IJobTargetGroupsOperations JobTargetGroups { get; private set; } + + /// + /// Gets the IJobVersionsOperations. + /// + public virtual IJobVersionsOperations JobVersions { get; private set; } + /// /// Gets the ILongTermRetentionBackupsOperations. /// @@ -532,6 +577,15 @@ private void Initialize() SyncMembers = new SyncMembersOperations(this); SubscriptionUsages = new SubscriptionUsagesOperations(this); VirtualNetworkRules = new VirtualNetworkRulesOperations(this); + JobAgents = new JobAgentsOperations(this); + JobCredentials = new JobCredentialsOperations(this); + JobExecutions = new JobExecutionsOperations(this); + Jobs = new JobsOperations(this); + JobStepExecutions = new JobStepExecutionsOperations(this); + JobSteps = new JobStepsOperations(this); + JobTargetExecutions = new JobTargetExecutionsOperations(this); + JobTargetGroups = new JobTargetGroupsOperations(this); + JobVersions = new JobVersionsOperations(this); LongTermRetentionBackups = new LongTermRetentionBackupsOperations(this); BackupLongTermRetentionPolicies = new BackupLongTermRetentionPoliciesOperations(this); ManagedDatabases = new ManagedDatabasesOperations(this); diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index b5a6936ab9c6..eb30787ba0c2 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,11 +1,14 @@ -2018-04-18 23:35:28 UTC + +Type dsc to start/install the DS Consolidated Console + +2018-05-17 21:57:39 UTC 1) azure-rest-api-specs repository information -GitHub user: jugeorge -Branch: master -Commit: d08c7f54a125819caaa8c5f553206d1adbae60f9 +GitHub user: johnpaulkee +Branch: jobsSdk +Commit: 992e3dd8dfe722697d045458f827e9d554ef6ebb 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\jugeorge\AppData\Roaming\npm `-- autorest@2.0.4262 +Bootstrapper version: C:\Users\joke\AppData\Roaming\npm `-- autorest@2.0.4262 Latest installed version: From d12b733a1f3825ceecd578461cb756dfa841067a Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 18:00:25 -0700 Subject: [PATCH 02/10] Adding tests. Recordings to be placed in after --- .../SqlDatabaseAgentScenarioTests.cs | 563 ++++++++++++++++++ .../Utilities/SqlManagementTestContext.cs | 6 + 2 files changed, 569 insertions(+) create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs new file mode 100644 index 000000000000..96836fb06b59 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -0,0 +1,563 @@ +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 Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Threading; +using System.Threading.Tasks; +using Xunit; + +namespace Sql.Tests +{ + public class SqlDatabaseAgentScenarioTests + { + /// + /// Test end to end agent + /// + [Fact] + public void TestCreateUpdateDropAgent() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent1"; + var agent1 = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + // Update agent tags + agent1 = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id, + Tags = new Dictionary() + { + { "tagKey1", "TagValue1" } + } + }); + + // Get agent + agent1 = sqlClient.JobAgents.Get(resourceGroup.Name, server.Name, agentName); + + // List agents + var agents = sqlClient.JobAgents.ListByServer(resourceGroup.Name, server.Name); + + // Delete agent + sqlClient.JobAgents.Delete(resourceGroup.Name, server.Name, agentName); + } + finally + { + // Clean up + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + /// + /// Tests end to end job credential + /// + [Fact] + public void TestCreateUpdateDropJobCredential() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + // Create credential + JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = "cloudsa", + Password = "Yukon900!" + }); + + + // Update credential + credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = SqlManagementTestUtilities.DefaultLogin, + Password = SqlManagementTestUtilities.DefaultPassword + }); + + // List credentials + sqlClient.JobCredentials.ListByAgent(resourceGroup.Name, server.Name, agent.Name); + + // Delete credential + sqlClient.JobCredentials.Delete(resourceGroup.Name, server.Name, agent.Name, credential.Name); + } + finally + { + // Clean up resource group + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + /// + /// Tests end to end target group + /// + [Fact] + public void TestCreateUpdateDropTargetGroup() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + + // Create credential + JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = SqlManagementTestUtilities.DefaultLogin, + Password = SqlManagementTestUtilities.DefaultPassword + }); + + // Create target group + JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup + { + Members = + { + // server target + new JobTarget + { + ServerName = "s1", + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } + } + }); + + // Update target group with each type of target + targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup + { + Members = + { + // server target + new JobTarget + { + ServerName = "s1", + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + }, + // db target + new JobTarget + { + DatabaseName = "db1", + ServerName = "s1", + Type = JobTargetType.SqlDatabase, + MembershipType = JobTargetGroupMembershipType.Include, + }, + // shard map target + new JobTarget + { + ShardMapName = "sm1", + DatabaseName = "db1", + ServerName = "s1", + RefreshCredential = credential.Name, + Type = JobTargetType.SqlShardMap, + MembershipType = JobTargetGroupMembershipType.Exclude, + }, + // elastic pool target + new JobTarget + { + ElasticPoolName = "ep1", + DatabaseName = "db1", + ServerName = "s1", + RefreshCredential = credential.Name, + Type = JobTargetType.SqlElasticPool, + MembershipType = JobTargetGroupMembershipType.Exclude, + }, + } + }); + + // List target groups + sqlClient.JobTargetGroups.ListByAgent(resourceGroup.Name, server.Name, agent.Name); + + // Delete target group + sqlClient.JobTargetGroups.Delete(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name); + } + finally + { + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + /// + /// Tests end to end job + /// + [Fact] + public void TestCreateUpdateDropJob() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + // Create job that repeats every 5 min from now. Starting now and ending in a day. + Job job1 = sqlClient.Jobs.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "job1", new Job + { + Description = "Test description", + Schedule = new JobSchedule + { + Enabled = false, + StartTime = new DateTime(), + EndTime = new DateTime().AddDays(1), + Type = JobScheduleType.Recurring, + Interval = "PT5M" + } + }); + + // Update job to run once + job1 = sqlClient.Jobs.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "job1", new Job + { + Description = "Test description", + Schedule = new JobSchedule + { + Enabled = true, + Type = JobScheduleType.Once, + } + }); + + // List job + sqlClient.Jobs.ListByAgent(resourceGroup.Name, server.Name, agent.Name); + + // Delete job + sqlClient.Jobs.Delete(resourceGroup.Name, server.Name, agent.Name, job1.Name); + } + finally + { + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + /// + /// Tests end to end job step + /// + [Fact] + public void TestCreateUpdateDropJobStep() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + + // Create credential + JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = SqlManagementTestUtilities.DefaultLogin, + Password = SqlManagementTestUtilities.DefaultPassword + }); + + + // Create target group + JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup + { + Members = + { + // server target + new JobTarget + { + ServerName = server.Name, + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } + } + }); + + // Create job that runs once + Job job1 = sqlClient.Jobs.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "job1", new Job + { + Description = "Test description", + Schedule = new JobSchedule + { + Enabled = true, + Type = JobScheduleType.Once, + } + }); + + // Create step with min params + JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep + { + Credential = credential.Name, + Action = new JobStepAction + { + Value = "SELECT 1" + }, + TargetGroup = targetGroup.Name, + }); + + + + // Update step with max params + step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep + { + Credential = credential.Name, + Action = new JobStepAction + { + Value = "SELECT 1", + Source = "Inline", + Type = "TSql" + }, + TargetGroup = targetGroup.Name, + ExecutionOptions = new JobStepExecutionOptions + { + InitialRetryIntervalSeconds = 100, + MaximumRetryIntervalSeconds = 1000, + RetryAttempts = 1000, + RetryIntervalBackoffMultiplier = 1.5, + TimeoutSeconds = 10000 + }, + Output = new JobStepOutput + { + ResourceGroupName = "rg1", + ServerName = "s1", + DatabaseName = "db1", + SchemaName = "dbo", + TableName = "tbl", + SubscriptionId = new Guid(), + Credential = credential.Name, + Type = JobTargetType.SqlDatabase + } + }); + + + // List steps by job + sqlClient.JobSteps.ListByJob(resourceGroup.Name, server.Name, agent.Name, job1.Name); + + // Delete job step + sqlClient.JobSteps.Delete(resourceGroup.Name, server.Name, agent.Name, job1.Name, step1.Name); + } + finally + { + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + + + /// + /// Tests end to end job execution + /// + [Fact] + public void TestStartStopGetJobExecution() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + + try + { + // Create database only required parameters + string dbName = SqlManagementTestUtilities.GenerateName(); + var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() + { + Location = server.Location, + }); + Assert.NotNull(db1); + + // Create agent + string agentName = "agent"; + + JobAgent agent = sqlClient.JobAgents.CreateOrUpdate(resourceGroup.Name, server.Name, agentName, new JobAgent + { + Location = server.Location, + DatabaseId = db1.Id + }); + + + // Create credential + JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential + { + Username = SqlManagementTestUtilities.DefaultLogin, + Password = SqlManagementTestUtilities.DefaultPassword + }); + + + // Create target group + JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup + { + Members = + { + // server target + new JobTarget + { + ServerName = server.Name, + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } + } + }); + + // Create job that runs once + Job job1 = sqlClient.Jobs.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "job1", new Job + { + Description = "Test description", + Schedule = new JobSchedule + { + Enabled = true, + Type = JobScheduleType.Once, + } + }); + + // Create job step + JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep + { + Credential = credential.Name, + Action = new JobStepAction + { + Value = "SELECT 1" + }, + TargetGroup = targetGroup.Name, + }); + + + // Create job execution from job1 + JobExecution jobExecution = sqlClient.JobExecutions.BeginCreate(resourceGroup.Name, server.Name, agent.Name, job1.Name); + + // List executions by agent + sqlClient.JobExecutions.ListByAgent(resourceGroup.Name, server.Name, agent.Name); + + // List executions by job + sqlClient.JobExecutions.ListByJob(resourceGroup.Name, server.Name, agent.Name, job1.Name); + + // Get root job execution + sqlClient.JobExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + + // List step executions by root execution + sqlClient.JobStepExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + + // Get step1 execution + sqlClient.JobStepExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name); + + + // List target executions by root job execution + IPage targetExecutions = sqlClient.JobTargetExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + + // List target executions by job step + IPage targetStepExecutions = sqlClient.JobTargetExecutions.ListByStep(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name); + + // Get target execution + sqlClient.JobTargetExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name, Guid.Parse(targetStepExecutions.FirstOrDefault().Name)); + + // Cancel the job execution + sqlClient.JobExecutions.Cancel(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + } + finally + { + context.DeleteResourceGroup(resourceGroup.Name); + } + } + } + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs index b2957616c3b0..a64607df0ba1 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/Utilities/SqlManagementTestContext.cs @@ -66,6 +66,12 @@ public ResourceGroup CreateResourceGroup(string location) return resourceGroup; } + public void DeleteResourceGroup(string resourceGroupName) + { + ResourceManagementClient resourceClient = GetClient(); + resourceClient.ResourceGroups.BeginDelete(resourceGroupName); + } + public Server CreateServer(ResourceGroup resourceGroup) { return CreateServer(resourceGroup, TestEnvironmentUtilities.DefaultLocation); From cbdd4503b894791c0a45da1bc2aedaacec1698d4 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 18:16:12 -0700 Subject: [PATCH 03/10] Fixing target group member list initialization bug --- .../SqlDatabaseAgentScenarioTests.cs | 131 +++++++++--------- 1 file changed, 65 insertions(+), 66 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs index 96836fb06b59..0dd42fc9027a 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -166,7 +166,6 @@ public void TestCreateUpdateDropTargetGroup() DatabaseId = db1.Id }); - // Create credential JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential { @@ -177,61 +176,61 @@ public void TestCreateUpdateDropTargetGroup() // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { - Members = - { - // server target - new JobTarget + Members = new List { - ServerName = "s1", - Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, - MembershipType = JobTargetGroupMembershipType.Include, + // server target + new JobTarget + { + ServerName = "s1", + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } } - } }); // Update target group with each type of target targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { - Members = - { - // server target - new JobTarget + Members = new List { - ServerName = "s1", - Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, - MembershipType = JobTargetGroupMembershipType.Include, - }, - // db target - new JobTarget - { - DatabaseName = "db1", - ServerName = "s1", - Type = JobTargetType.SqlDatabase, - MembershipType = JobTargetGroupMembershipType.Include, - }, - // shard map target - new JobTarget - { - ShardMapName = "sm1", - DatabaseName = "db1", - ServerName = "s1", - RefreshCredential = credential.Name, - Type = JobTargetType.SqlShardMap, - MembershipType = JobTargetGroupMembershipType.Exclude, - }, - // elastic pool target - new JobTarget - { - ElasticPoolName = "ep1", - DatabaseName = "db1", - ServerName = "s1", - RefreshCredential = credential.Name, - Type = JobTargetType.SqlElasticPool, - MembershipType = JobTargetGroupMembershipType.Exclude, - }, - } + // server target + new JobTarget + { + ServerName = "s1", + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + }, + // db target + new JobTarget + { + DatabaseName = "db1", + ServerName = "s1", + Type = JobTargetType.SqlDatabase, + MembershipType = JobTargetGroupMembershipType.Include, + }, + // shard map target + new JobTarget + { + ShardMapName = "sm1", + DatabaseName = "db1", + ServerName = "s1", + RefreshCredential = credential.Name, + Type = JobTargetType.SqlShardMap, + MembershipType = JobTargetGroupMembershipType.Exclude, + }, + // elastic pool target + new JobTarget + { + ElasticPoolName = "ep1", + DatabaseName = "db1", + ServerName = "s1", + RefreshCredential = credential.Name, + Type = JobTargetType.SqlElasticPool, + MembershipType = JobTargetGroupMembershipType.Exclude, + }, + } }); // List target groups @@ -359,17 +358,17 @@ public void TestCreateUpdateDropJobStep() // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { - Members = - { - // server target - new JobTarget + Members = new List { - ServerName = server.Name, - Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, - MembershipType = JobTargetGroupMembershipType.Include, + // server target + new JobTarget + { + ServerName = server.Name, + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } } - } }); // Create job that runs once @@ -486,17 +485,17 @@ public void TestStartStopGetJobExecution() // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { - Members = - { - // server target - new JobTarget + Members = new List { - ServerName = server.Name, - Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, - MembershipType = JobTargetGroupMembershipType.Include, + // server target + new JobTarget + { + ServerName = server.Name, + Type = JobTargetType.SqlServer, + RefreshCredential = credential.Name, + MembershipType = JobTargetGroupMembershipType.Include, + } } - } }); // Create job that runs once From 28f903a7638672910b86578312a56894ec5a9aac Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 18:43:04 -0700 Subject: [PATCH 04/10] Fixing credential and target group id in all tests. Added hacky way to grab subscription id from env variable --- .../SqlDatabaseAgentScenarioTests.cs | 58 ++++++++++++++----- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs index 0dd42fc9027a..8e386477f193 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -17,6 +17,17 @@ namespace Sql.Tests { public class SqlDatabaseAgentScenarioTests { + private string _subscriptionId; + + public SqlDatabaseAgentScenarioTests() + { + // Sort of a hacky way to grab the subscription id from the environment variables, but given that developer set their + // TEST_CSM_ORGID_AUTHENTICATION environment variable in this format then: + // SubscriptionId={SubId};ServicePrincipal={clientId};ServicePrincipalSecret={clientSecret};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record; + // The below string split and getting the {SubId} should work. + this._subscriptionId = Environment.GetEnvironmentVariables()["TEST_CSM_ORGID_AUTHENTICATION"].ToString().Split(';')[0].Split('=')[1]; + } + /// /// Test end to end agent /// @@ -183,7 +194,7 @@ public void TestCreateUpdateDropTargetGroup() { ServerName = "s1", Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), MembershipType = JobTargetGroupMembershipType.Include, } } @@ -199,7 +210,7 @@ public void TestCreateUpdateDropTargetGroup() { ServerName = "s1", Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), MembershipType = JobTargetGroupMembershipType.Include, }, // db target @@ -216,7 +227,7 @@ public void TestCreateUpdateDropTargetGroup() ShardMapName = "sm1", DatabaseName = "db1", ServerName = "s1", - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Type = JobTargetType.SqlShardMap, MembershipType = JobTargetGroupMembershipType.Exclude, }, @@ -226,7 +237,7 @@ public void TestCreateUpdateDropTargetGroup() ElasticPoolName = "ep1", DatabaseName = "db1", ServerName = "s1", - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Type = JobTargetType.SqlElasticPool, MembershipType = JobTargetGroupMembershipType.Exclude, }, @@ -355,6 +366,7 @@ public void TestCreateUpdateDropJobStep() }); + // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { @@ -365,7 +377,7 @@ public void TestCreateUpdateDropJobStep() { ServerName = server.Name, Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), MembershipType = JobTargetGroupMembershipType.Include, } } @@ -385,12 +397,12 @@ public void TestCreateUpdateDropJobStep() // Create step with min params JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = credential.Name, + Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Action = new JobStepAction { Value = "SELECT 1" }, - TargetGroup = targetGroup.Name, + TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name) }); @@ -398,14 +410,14 @@ public void TestCreateUpdateDropJobStep() // Update step with max params step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = credential.Name, + Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Action = new JobStepAction { Value = "SELECT 1", Source = "Inline", Type = "TSql" }, - TargetGroup = targetGroup.Name, + TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name), ExecutionOptions = new JobStepExecutionOptions { InitialRetryIntervalSeconds = 100, @@ -422,7 +434,7 @@ public void TestCreateUpdateDropJobStep() SchemaName = "dbo", TableName = "tbl", SubscriptionId = new Guid(), - Credential = credential.Name, + Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Type = JobTargetType.SqlDatabase } }); @@ -492,7 +504,7 @@ public void TestStartStopGetJobExecution() { ServerName = server.Name, Type = JobTargetType.SqlServer, - RefreshCredential = credential.Name, + RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), MembershipType = JobTargetGroupMembershipType.Include, } } @@ -512,12 +524,12 @@ public void TestStartStopGetJobExecution() // Create job step JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = credential.Name, + Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Action = new JobStepAction { Value = "SELECT 1" }, - TargetGroup = targetGroup.Name, + TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name) }); @@ -558,5 +570,25 @@ public void TestStartStopGetJobExecution() } } } + + /// + /// Helper to format credential id string + /// + /// Refresh credential string + private string FormatCredentialId(string resourceGroupName, string serverName, string agentName, string credentialName) + { + return string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/jobAgents/{3}/credentials/{4}", + this._subscriptionId, resourceGroupName, serverName, agentName, credentialName); + } + + /// + /// Helper to format target group id string + /// + /// Refresh credential string + private string FormatTargetGroupId(string resourceGroupName, string serverName, string agentName, string targetGroupName) + { + return string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/jobAgents/{3}/targetGroups/{4}", + this._subscriptionId, resourceGroupName, serverName, agentName, targetGroupName); + } } } \ No newline at end of file From 721c1e658541275b9dc6c452b7be3532a59990b7 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 20:11:35 -0700 Subject: [PATCH 05/10] Fixing job execution test by allowing all client ips to server --- .../SqlDatabaseAgentScenarioTests.cs | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs index 8e386477f193..214f04431324 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -235,7 +235,6 @@ public void TestCreateUpdateDropTargetGroup() new JobTarget { ElasticPoolName = "ep1", - DatabaseName = "db1", ServerName = "s1", RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), Type = JobTargetType.SqlElasticPool, @@ -464,10 +463,18 @@ public void TestStartStopGetJobExecution() { ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); try { + // Allow all conenctions for test + sqlClient.FirewallRules.CreateOrUpdate(resourceGroup.Name, server.Name, "allowAll", new FirewallRule + { + StartIpAddress = "0.0.0.0", + EndIpAddress = "255.255.255.255", + }); + // Create database only required parameters string dbName = SqlManagementTestUtilities.GenerateName(); var db1 = sqlClient.Databases.CreateOrUpdate(resourceGroup.Name, server.Name, dbName, new Database() @@ -503,8 +510,8 @@ public void TestStartStopGetJobExecution() new JobTarget { ServerName = server.Name, - Type = JobTargetType.SqlServer, - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + DatabaseName = db1.Name, + Type = JobTargetType.SqlDatabase, MembershipType = JobTargetGroupMembershipType.Include, } } @@ -533,8 +540,8 @@ public void TestStartStopGetJobExecution() }); - // Create job execution from job1 - JobExecution jobExecution = sqlClient.JobExecutions.BeginCreate(resourceGroup.Name, server.Name, agent.Name, job1.Name); + // Create job execution from job1 - do sync so we can be sure a step execution succeeds + JobExecution jobExecution = sqlClient.JobExecutions.Create(resourceGroup.Name, server.Name, agent.Name, job1.Name); // List executions by agent sqlClient.JobExecutions.ListByAgent(resourceGroup.Name, server.Name, agent.Name); @@ -543,7 +550,7 @@ public void TestStartStopGetJobExecution() sqlClient.JobExecutions.ListByJob(resourceGroup.Name, server.Name, agent.Name, job1.Name); // Get root job execution - sqlClient.JobExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + jobExecution = sqlClient.JobExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); // List step executions by root execution sqlClient.JobStepExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); @@ -551,12 +558,12 @@ public void TestStartStopGetJobExecution() // Get step1 execution sqlClient.JobStepExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name); - // List target executions by root job execution - IPage targetExecutions = sqlClient.JobTargetExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); - + sqlClient.JobTargetExecutions.ListByJobExecution(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value); + // List target executions by job step IPage targetStepExecutions = sqlClient.JobTargetExecutions.ListByStep(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name); + Assert.Single(targetStepExecutions); // Get target execution sqlClient.JobTargetExecutions.Get(resourceGroup.Name, server.Name, agent.Name, job1.Name, jobExecution.JobExecutionId.Value, step1.Name, Guid.Parse(targetStepExecutions.FirstOrDefault().Name)); From 09fdc9185ec3b2aa2ffa55751067ac3b0a567134 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Thu, 17 May 2018 20:12:28 -0700 Subject: [PATCH 06/10] Adding recordings --- .../TestCreateUpdateDropAgent.json | 2037 ++++++++++++ .../TestCreateUpdateDropJob.json | 2879 +++++++++++++++++ .../TestCreateUpdateDropJobCredential.json | 1598 +++++++++ .../TestCreateUpdateDropJobStep.json | 1738 ++++++++++ .../TestCreateUpdateDropTargetGroup.json | 1726 ++++++++++ .../TestStartStopGetJobExecution.json | 2738 ++++++++++++++++ 6 files changed, 12716 insertions(+) create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json new file mode 100644 index 000000000000..cc14474b82e3 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json @@ -0,0 +1,2037 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1295\": \"2018-05-18 01:59:10Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "dcf05856-c1ee-4384-838c-ecafa3350f25" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295\",\r\n \"name\": \"sqlcrudtest-1295\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1295\": \"2018-05-18 01:59:10Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:59:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "7b982390-cf45-4452-aae1-99c06addf33d" + ], + "x-ms-correlation-request-id": [ + "7b982390-cf45-4452-aae1-99c06addf33d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015911Z:7b982390-cf45-4452-aae1-99c06addf33d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "0a66403d-e555-402d-999d-80eaffdb5b0c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:59:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverOperationResults/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "7aeae671-9ca3-4902-8b54-87533b2973b1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "793881ea-6257-4b7b-b11b-ff0b504b99da" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015914Z:793881ea-6257-4b7b-b11b-ff0b504b99da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:59:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0d4229dc-59cb-4653-83b4-110c975719e1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "102790ed-d0a0-47ac-84f8-a321e261dd2d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015924Z:102790ed-d0a0-47ac-84f8-a321e261dd2d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:59:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b4339f34-d041-40c2-828b-eded80479cf1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "9cf6f0ed-2d47-4e79-ac90-5469a472d5a3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015944Z:9cf6f0ed-2d47-4e79-ac90-5469a472d5a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "83de2251-a075-4d19-ba60-79bb1afb4714" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "09d33a65-47c4-4fa3-970c-ec5f29025893" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020004Z:09d33a65-47c4-4fa3-970c-ec5f29025893" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9933.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933\",\r\n \"name\": \"sqlcrudtest-9933\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "390c6619-324e-4b8a-ae5f-f99558a4db15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "9356c880-eb42-4630-9bc6-7b681efbc478" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020004Z:9356c880-eb42-4630-9bc6-7b681efbc478" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MTc5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "63c35777-7cc2-4486-a094-7e36ee1be8c7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "c98ffbe1-5516-4d2c-95b8-08801bd3bd6c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "8554f92c-fcd5-444b-be38-936131b0ba51" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020005Z:8554f92c-fcd5-444b-be38-936131b0ba51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0ed0cbf9-843c-46bb-aa63-95bfd18502b9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "90257434-8595-4b95-81fd-3463f0ba27ef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020020Z:90257434-8595-4b95-81fd-3463f0ba27ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "95b9989d-680c-42d6-ab27-e6e80183179e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "b552f6fa-7e3f-466a-b56b-c6d7d7411136" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020035Z:b552f6fa-7e3f-466a-b56b-c6d7d7411136" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "813e6414-b726-4dca-8225-a7fc4c46ac07" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "e6b45d74-b28d-44b3-be09-bb5ec40d1e86" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020050Z:e6b45d74-b28d-44b3-be09-bb5ec40d1e86" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MTc5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"71eb4c36-ef7b-4da0-94b4-816ec6fa8a92\",\r\n \"creationDate\": \"2018-05-18T02:00:07.703Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:30:47.193Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"name\": \"sqlcrudtest-8179\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "569e6910-cc58-45ed-9cf2-87fae275048f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "32aa5ec5-9597-4718-bb47-17bd765a5d3f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020050Z:32aa5ec5-9597-4718-bb47-17bd765a5d3f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "473e66e2-30c5-4d7b-9408-7ab1d8f97f9b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:00:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "0330b104-fb5b-422e-8f1f-217a3ed336c5" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "105f1d97-a0c8-46c3-9341-ac2dc27b0dd1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020051Z:105f1d97-a0c8-46c3-9341-ac2dc27b0dd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "282" + ], + "x-ms-client-request-id": [ + "7289acb0-5465-4943-843a-eddae3be0631" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:03:06.793Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "05353717-e7cd-4f00-9cc5-940c2057d1e4" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "6daf32cc-ae8c-4c9e-9dab-2d21e7e04611" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020306Z:6daf32cc-ae8c-4c9e-9dab-2d21e7e04611" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:01:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "962e801c-278a-4b97-bfb3-2eee33c69176" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "5382801b-4a1e-4d7d-8483-0a97fb97a24c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020106Z:5382801b-4a1e-4d7d-8483-0a97fb97a24c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:01:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c6cee747-713e-4cea-b0bf-cf0294440592" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "eead4a70-31a7-4952-bca3-7b00f415872a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020121Z:eead4a70-31a7-4952-bca3-7b00f415872a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:01:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e757e59c-b2f0-40ad-92e2-e345cdd6999a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "88c9ad4d-2b50-4416-a19f-dacbee247c5d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020136Z:88c9ad4d-2b50-4416-a19f-dacbee247c5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:01:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1a0d68a3-feb0-480e-9053-a40ee36a41d4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "164210ad-9569-4ec5-9b45-d208c5cac7a3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020151Z:164210ad-9569-4ec5-9b45-d208c5cac7a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:02:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3f5ecb06-a42f-46d5-bbe9-d2daf569ac8b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "a7ae6d14-5de5-4b1d-93bd-c7084f236d3e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020206Z:a7ae6d14-5de5-4b1d-93bd-c7084f236d3e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:02:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de606b73-7303-4742-8a45-94a47bd0b5e4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "38aad526-3a7d-407d-9701-baf99fb4571c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020221Z:38aad526-3a7d-407d-9701-baf99fb4571c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:02:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fda792c7-ca36-43bc-8703-2eef16666bd1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "35bd6e36-b389-475a-b4b3-b413416cd93e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020236Z:35bd6e36-b389-475a-b4b3-b413416cd93e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:02:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c2063be7-f1c4-45b2-8ac7-686eaf45c321" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "8dba1743-e8e6-4a30-9c5f-4a195edf38ce" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020251Z:8dba1743-e8e6-4a30-9c5f-4a195edf38ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5a22d6dc-d845-478b-aa74-a6cb32e5b1df" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "bd59a05b-ac31-4c9f-904f-31065763dca2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020306Z:bd59a05b-ac31-4c9f-904f-31065763dca2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "590c4684-f4d8-40b7-97bb-b555eb94cc37" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "93b40fe6-2e1d-43c5-ab03-2e00a49d68d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020306Z:93b40fe6-2e1d-43c5-ab03-2e00a49d68d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9d6e2867-0265-4420-9c38-728176a4c409" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "4e8f2894-ea37-447d-b428-ab0e7f0aaad1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020321Z:4e8f2894-ea37-447d-b428-ab0e7f0aaad1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2095ed28-3554-49f2-9968-e23424e4c0f4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f3dbcb03-b4b1-4e19-9b9e-1830ef5cc885" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "1585eeb0-3acd-4d32-948e-b4bb5ffeaee1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020322Z:1585eeb0-3acd-4d32-948e-b4bb5ffeaee1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzIyMzY1Njk3LWRiZWQtNGY5My05ZGNmLWM3OWRmMjJhNjM5Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"22365697-dbed-4f93-9dcf-c79df22a6396\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:03:06.793Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c7435bdd-7102-435a-9bc2-f3124105f1d6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "ab2166b7-5d0e-4f70-b326-1e58f597e4b9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020321Z:ab2166b7-5d0e-4f70-b326-1e58f597e4b9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ed8eb2c-dcb6-4c93-a617-906d59194b0b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9734ebc3-3f38-4b0d-a96f-2f44a8b4a752" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "52e97a47-950d-4b28-b785-11fc760205a0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020322Z:52e97a47-950d-4b28-b785-11fc760205a0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b9d07f8-2f5e-4072-ac57-4105bb5a1c26" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DeleteJobAccount\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "c08111bc-0c7b-4631-a592-4b4246a82ab8" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "dee0d3b2-2858-4502-91aa-72d2a58184b2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020322Z:dee0d3b2-2858-4502-91aa-72d2a58184b2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2Q2NjlmNTFjLTM3MmYtNGJiOS05NGQyLTVkMzFmMzE3NWVhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d669f51c-372f-4bb9-94d2-5d31f3175ea1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bbd217a3-0272-4afe-b9b9-622c3bf1a9ee" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "7d7a5de5-b85d-4b9a-b253-44c2ade7c899" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020337Z:7d7a5de5-b85d-4b9a-b253-44c2ade7c899" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2Q2NjlmNTFjLTM3MmYtNGJiOS05NGQyLTVkMzFmMzE3NWVhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d669f51c-372f-4bb9-94d2-5d31f3175ea1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "309e4f7a-fb00-4e4a-813b-e7805affef16" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "f89d8874-c01c-49e3-b516-ab4480c1e1d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020352Z:f89d8874-c01c-49e3-b516-ab4480c1e1d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "be93f8b7-4bff-4d22-aa82-24d5f4d10340" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyOTUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "4c127b84-cff5-4842-9bf1-f3a333540b63" + ], + "x-ms-correlation-request-id": [ + "4c127b84-cff5-4842-9bf1-f3a333540b63" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020353Z:4c127b84-cff5-4842-9bf1-f3a333540b63" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5112a7b4-f409-4d33-a55b-f22f54215514" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:03:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyOTUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + ], + "x-ms-correlation-request-id": [ + "d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020353Z:d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-1295" + ], + "CreateServer": [ + "sqlcrudtest-9933" + ], + "TestCreateUpdateDropAgent": [ + "sqlcrudtest-8179" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json new file mode 100644 index 000000000000..128daa1ff9ce --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json @@ -0,0 +1,2879 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1353\": \"2018-05-18 01:41:12Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "c26214bd-2e71-45ae-b28c-e86a151d2533" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353\",\r\n \"name\": \"sqlcrudtest-1353\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1353\": \"2018-05-18 01:41:12Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:41:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "101f4501-c2a2-4ebc-b54b-361e9742892b" + ], + "x-ms-correlation-request-id": [ + "101f4501-c2a2-4ebc-b54b-361e9742892b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014113Z:101f4501-c2a2-4ebc-b54b-361e9742892b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "c7ee5cb2-11ba-47cd-9aab-238493fc1223" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:41:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverOperationResults/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "58357293-c42d-470d-beff-38f46339a38a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "e5e0d46c-3839-447f-8f22-357ebaffe647" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014118Z:e5e0d46c-3839-447f-8f22-357ebaffe647" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:41:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c2878e23-64a3-4d2b-9e57-aed9bcf1650e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "fc4b4fa1-77cf-4d85-a8db-c940986625c4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014128Z:fc4b4fa1-77cf-4d85-a8db-c940986625c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:41:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "555cdf2a-a76d-47ba-a64e-0637e96f4ea9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "2dbbf26c-3f02-4ad7-90a1-2a9aed382769" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014148Z:2dbbf26c-3f02-4ad7-90a1-2a9aed382769" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "82d30827-e55a-4a92-9272-ff0763d6f36c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "32494398-c56d-4836-8afc-7ea5046e2dc8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014209Z:32494398-c56d-4836-8afc-7ea5046e2dc8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-5485.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485\",\r\n \"name\": \"sqlcrudtest-5485\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2aafa819-4574-4184-b71b-4283f479f286" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "d4ffe3c2-f2bb-4269-a2c1-1160fbe648f9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014209Z:d4ffe3c2-f2bb-4269-a2c1-1160fbe648f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NTkzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "5f824d22-34e6-4777-acc5-5942dfed6147" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "30fae471-d899-4997-b8ae-b64c94cc3190" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "bd2bb883-1acd-43d3-8023-515d625450fe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014209Z:bd2bb883-1acd-43d3-8023-515d625450fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e4ddf072-d898-4119-996e-944d57898439" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "49ab5021-143c-440f-9801-d10e4fa60d74" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014224Z:49ab5021-143c-440f-9801-d10e4fa60d74" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a302a278-6a52-468e-b968-fa392fbe34cd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "791d43c3-7d50-49ad-95bf-469b06e82343" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014240Z:791d43c3-7d50-49ad-95bf-469b06e82343" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3e45db60-3ae7-40e3-9853-9159a1ceae7e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "5a788626-a3dc-4367-b8ac-999c5c247f80" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014255Z:5a788626-a3dc-4367-b8ac-999c5c247f80" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NTkzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"48d1214c-1fc0-4124-bc8d-9a807a17b589\",\r\n \"creationDate\": \"2018-05-18T01:42:10.133Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:12:46.267Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\",\r\n \"name\": \"sqlcrudtest-5593\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0d97d751-3df9-4ace-a4dc-fe3a29fe0607" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "cb9d8239-d391-4728-8351-d734d7aaba32" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014255Z:cb9d8239-d391-4728-8351-d734d7aaba32" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "d20e94c2-bc8a-4f2a-8b97-937a8138fe84" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:42:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "f4d13247-67cb-4d95-9593-d07b28baf249" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "18e995a5-08bc-451b-8d5d-dab39cf2afda" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014255Z:18e995a5-08bc-451b-8d5d-dab39cf2afda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:43:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6fe8bdca-3b82-4cbc-96f7-fa7bbc9e5fa9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "408b4e48-1d36-4390-9c66-b8fc8f1be0ed" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014310Z:408b4e48-1d36-4390-9c66-b8fc8f1be0ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:43:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "711ab149-888f-4d33-b1a9-3eb045a542c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "86ed2140-0eed-492e-945c-f71b463231cb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014325Z:86ed2140-0eed-492e-945c-f71b463231cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:43:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cd742402-5a43-4a40-9ff4-0f82cf71736c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "7f6b81fe-5df4-46d9-9609-fe637458d014" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014340Z:7f6b81fe-5df4-46d9-9609-fe637458d014" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:43:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "14d728c7-3c4c-4967-b763-227b70e558ef" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "b58b2d27-6b01-4077-a6bc-349b145e1d0f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014355Z:b58b2d27-6b01-4077-a6bc-349b145e1d0f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:44:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7e20c4ba-9a35-41c3-966c-85e1360c9faf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "8c1674dc-1bdf-4947-ad94-3ffbbb83fa58" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014410Z:8c1674dc-1bdf-4947-ad94-3ffbbb83fa58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:44:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "33c2d4e9-f7bb-43bb-a84f-eb3900d06b42" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "1818f11e-fc34-4493-b19e-471f004f626d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014425Z:1818f11e-fc34-4493-b19e-471f004f626d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:44:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5e13934e-dd40-4f3d-938d-d0ab3ab1f035" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "18a78067-058b-42fc-95fb-8bdefe770cd3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014440Z:18a78067-058b-42fc-95fb-8bdefe770cd3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:44:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e8061e8a-16dd-4986-8950-2f47f65bd5d8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "7dfd2dcf-bab9-4610-99a1-a7ec6b7a78bc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014456Z:7dfd2dcf-bab9-4610-99a1-a7ec6b7a78bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:45:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "970ab5b6-a87b-41db-ace0-d45b980d6174" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "cf8fb6ed-ee5c-4a0b-a791-a4ddbb153cfa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014511Z:cf8fb6ed-ee5c-4a0b-a791-a4ddbb153cfa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:45:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "13e7ec33-9de1-4338-a407-5c8200d33dd2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "d06785d8-a587-4d8d-8418-44a59fc3a989" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014526Z:d06785d8-a587-4d8d-8418-44a59fc3a989" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:45:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "29769f92-49e0-4d52-8828-695e5cea2c29" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "c1079b88-46f1-46c7-a20a-ec1f3d15b5c5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014541Z:c1079b88-46f1-46c7-a20a-ec1f3d15b5c5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:45:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8aed65ae-0ecc-4103-a0ef-bc09b7eafa2c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "017db22c-adec-4627-bad9-3352a8d04652" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014556Z:017db22c-adec-4627-bad9-3352a8d04652" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:46:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1fb1d44e-94e2-4f6d-8d1d-e2259ba867f3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "e0132546-fa11-44ff-9268-47caa215a5fa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014611Z:e0132546-fa11-44ff-9268-47caa215a5fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:46:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "94dbcf83-a8b7-4cb6-baf4-54416eaf07b7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "afd47af0-30cb-4ede-ad29-e1ac2b714828" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014626Z:afd47af0-30cb-4ede-ad29-e1ac2b714828" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:46:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1334ec85-5d38-4983-914a-5f2546596491" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "1016909b-6abe-467e-a012-d99fc888f64c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014641Z:1016909b-6abe-467e-a012-d99fc888f64c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:46:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1a22d342-690b-4b4a-918a-95290b7f5bdf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "b49d1e7a-0592-4a33-9cce-f03b8f2e50cc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014656Z:b49d1e7a-0592-4a33-9cce-f03b8f2e50cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:47:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "12571a82-8ffe-4bda-963e-3623e7d593b4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "f7cace68-9200-4226-b574-1eb376221abc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014711Z:f7cace68-9200-4226-b574-1eb376221abc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:47:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "65c6a90a-ecda-4dda-8f53-1566581115cc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "c93e620b-143c-4699-ad92-6b6a9fe31bb8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014726Z:c93e620b-143c-4699-ad92-6b6a9fe31bb8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:47:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "73afe107-2fb4-40be-922a-ef46fce089b7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "0c9ee65c-56c0-4d30-b7ef-8eb855947def" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014741Z:0c9ee65c-56c0-4d30-b7ef-8eb855947def" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:47:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d4cdaaf7-79ee-446d-9fe1-c2af703bf41f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "7cce9455-74c5-410c-9d43-a03f5aedf2b5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014756Z:7cce9455-74c5-410c-9d43-a03f5aedf2b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:48:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e13d19c7-1ae9-4ce1-ade0-cc934e543fc3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "b69f297e-6c1d-4412-993a-fbe9145627cb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014811Z:b69f297e-6c1d-4412-993a-fbe9145627cb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:48:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "801c577b-27a5-4a55-948d-904f9341b997" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "3d815a88-142d-4803-9393-69d0a4de8ef0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014826Z:3d815a88-142d-4803-9393-69d0a4de8ef0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:48:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e537c726-e559-427b-ab19-6ac954bcbab6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "aec3dab6-1d44-4ab3-8fe7-beec0cafc89a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014841Z:aec3dab6-1d44-4ab3-8fe7-beec0cafc89a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:48:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "caf342e9-1508-48f0-90aa-efa3cde031a5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "4fa21549-b532-4123-b3d5-1bf15b38e559" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014856Z:4fa21549-b532-4123-b3d5-1bf15b38e559" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bfc4ddf1-f559-4369-919c-4490087effba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "4ba1862b-b5ff-40d6-9319-7265ccc427af" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014911Z:4ba1862b-b5ff-40d6-9319-7265ccc427af" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "77507636-4a74-41be-b88b-04e1d20a7f7f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "e3c8158b-574f-4857-b159-ef6ddb52bf09" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014926Z:e3c8158b-574f-4857-b159-ef6ddb52bf09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "44c3a1ad-b208-4269-b817-d45c5e546295" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "9378e302-6828-4ddf-abda-8d8c4316bbd1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014941Z:9378e302-6828-4ddf-abda-8d8c4316bbd1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8ad531c1-4d06-4ab7-88b2-d806da60bfca" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "51133f44-2b90-40a4-aea3-83c9cf625845" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014941Z:51133f44-2b90-40a4-aea3-83c9cf625845" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "259" + ], + "x-ms-client-request-id": [ + "76607653-2da5-49fa-a72a-28f26008f72b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8fc6fa84-92da-4e15-a931-fa9e9020d143" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "65e19b60-3019-4092-88fd-ed1231571a6e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014942Z:65e19b60-3019-4092-88fd-ed1231571a6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "1d442ff8-9d83-4dbb-a6c7-12d396b31d1d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b4eb085d-8b57-4dcf-a26a-29a66efc65c1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "3b52a50a-690f-41a9-8102-b8311250257c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014942Z:3b52a50a-690f-41a9-8102-b8311250257c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e68bea43-223e-498a-b03d-76359c653992" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a4757fdd-9efd-4d47-8ea0-6174da6fbb0e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "47af963c-3254-4e40-bce6-4aced83a680f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014943Z:47af963c-3254-4e40-bce6-4aced83a680f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9207cb5a-30d2-48cc-a3c0-27888052dee8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ade4f528-caa1-47dc-9e96-86830351db94" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "1e46bd41-b8e1-4dd0-8cc7-7d6f686db193" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014943Z:1e46bd41-b8e1-4dd0-8cc7-7d6f686db193" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4ecec2cd-ac26-4bbc-9baa-00e3b8c6dca1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEzNTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + ], + "x-ms-correlation-request-id": [ + "fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014943Z:fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf85a74a-2d91-40c6-b6c5-df17b6eb4198" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEzNTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "5dad3535-e16b-4a95-8d01-3890f4eec5b1" + ], + "x-ms-correlation-request-id": [ + "5dad3535-e16b-4a95-8d01-3890f4eec5b1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014943Z:5dad3535-e16b-4a95-8d01-3890f4eec5b1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-1353" + ], + "CreateServer": [ + "sqlcrudtest-5485" + ], + "TestCreateUpdateDropJob": [ + "sqlcrudtest-5593" + ] + }, + "Variables": { + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json new file mode 100644 index 000000000000..abbf81537932 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json @@ -0,0 +1,1598 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3019\": \"2018-05-18 01:52:48Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "621b70d9-352b-4047-a8d8-d0506757fa5f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019\",\r\n \"name\": \"sqlcrudtest-3019\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3019\": \"2018-05-18 01:52:48Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "85df2e85-0599-467d-b74e-06e9e87b4aa4" + ], + "x-ms-correlation-request-id": [ + "85df2e85-0599-467d-b74e-06e9e87b4aa4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015249Z:85df2e85-0599-467d-b74e-06e9e87b4aa4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "3b46b065-e648-4537-8b54-a5a8b9404584" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "72" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverOperationResults/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "fbce9bfa-e7fc-42b8-aea2-8b0379776ceb" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "8bc0eb2d-7713-4c8d-a3f8-3dc69c8f3529" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015251Z:8bc0eb2d-7713-4c8d-a3f8-3dc69c8f3529" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:53:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6de30668-f08c-4302-9f27-a67c49a7363b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "58df45ba-bbf8-437c-a885-4981eff4d74c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015301Z:58df45ba-bbf8-437c-a885-4981eff4d74c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:53:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bdbb017f-9b98-4a07-ac10-c419e81af512" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "8d2506c1-5f24-4217-bbf0-faebb456073d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015321Z:8d2506c1-5f24-4217-bbf0-faebb456073d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:53:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5ba9dda3-35a9-4179-b22d-13d1938a8f69" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "5a0b5ae7-46b8-436f-9b9c-1ab0b86add09" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015341Z:5a0b5ae7-46b8-436f-9b9c-1ab0b86add09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3e3b81c2-42d3-48bb-a337-82c67ecf259c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "ebc8d70a-d2a9-4f7a-b5d0-10ffad331f1c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015401Z:ebc8d70a-d2a9-4f7a-b5d0-10ffad331f1c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-3052.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052\",\r\n \"name\": \"sqlcrudtest-3052\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cd86cdc6-a466-449c-8312-e202e41b484c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "c80105e8-124b-4632-81a9-db43bf558c9d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015402Z:c80105e8-124b-4632-81a9-db43bf558c9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTkyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "f7aa2bc7-ec5f-4740-ad56-b8a08da57a3a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "85ba04dc-77b8-4199-8074-1cb930cafb40" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "de60899c-b274-47f1-903c-a6201c468acb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015402Z:de60899c-b274-47f1-903c-a6201c468acb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e283b20a-7bb2-4f93-a4c7-fe216834bafa" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "6b908da1-ec33-4ba1-a6ad-b60b39b7b555" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015417Z:6b908da1-ec33-4ba1-a6ad-b60b39b7b555" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ef0f1fc3-fbad-4609-9bec-4b6b1c984a8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "25acdc81-2078-4da3-bf5a-025861fb8140" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015432Z:25acdc81-2078-4da3-bf5a-025861fb8140" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "62af3461-5a38-4cd5-b7c0-1c720d83c90a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "ec0e0dc4-0c19-468c-b620-41e3607ad1c0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015447Z:ec0e0dc4-0c19-468c-b620-41e3607ad1c0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTkyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"fd8c640c-e139-4de3-957e-4408cd66aa3f\",\r\n \"creationDate\": \"2018-05-18T01:54:02.75Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:24:35.527Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\",\r\n \"name\": \"sqlcrudtest-5992\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "11c1d299-8d0a-462f-a7d7-79937d2e6cbd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "9c0a11a4-84ec-425a-9556-874fb6d1f3d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015447Z:9c0a11a4-84ec-425a-9556-874fb6d1f3d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "8cc6f8fe-1a0a-42a7-be7d-438d2cf2244a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:54:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "ec4d3eb3-ccfd-4421-b33e-637cc102c557" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "0370f574-dc64-401e-b2df-e8a9206c5de3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015448Z:0370f574-dc64-401e-b2df-e8a9206c5de3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:55:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7e3ee8e1-873b-42a1-85e8-c6c9bdddb348" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "4388afc1-3066-455d-965f-168451c91936" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015503Z:4388afc1-3066-455d-965f-168451c91936" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:55:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cfd11f7d-19b6-43a3-9c3c-f2c4427f4fc9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "168137b4-1db0-4407-aa5b-ee196d73660f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015518Z:168137b4-1db0-4407-aa5b-ee196d73660f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:55:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bc9066f0-d507-437f-ad74-679b90481264" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "951c4925-c232-4a4c-a60b-d3fbe53d823a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015533Z:951c4925-c232-4a4c-a60b-d3fbe53d823a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:55:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "55168349-e7ba-4e98-bdda-f573be8cdd1e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "33635e6b-9322-458b-b91b-23ffe6e1df81" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015548Z:33635e6b-9322-458b-b91b-23ffe6e1df81" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cea09f57-1e4f-48d7-adea-30b0dd79eaf7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "653f085c-7f16-4d1c-9db7-77ac86b9e587" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015603Z:653f085c-7f16-4d1c-9db7-77ac86b9e587" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ca1066d4-0ec7-43fa-b6f8-d860d61496db" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "a8da8a69-db03-4022-a7cd-d00a2c805a14" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015603Z:a8da8a69-db03-4022-a7cd-d00a2c805a14" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"cloudsa\",\r\n \"password\": \"Yukon900!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "85" + ], + "x-ms-client-request-id": [ + "ce26c2ed-39f1-47b8-b56c-705e27ed2711" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"cloudsa\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "289" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "79007019-754d-4bb0-85f0-e4e735a841b1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "b07311a5-bfb3-4339-a072-e1c3f8ef6aeb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015604Z:b07311a5-bfb3-4339-a072-e1c3f8ef6aeb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "2806d149-727d-417a-8b80-40d7fbe4bf68" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e0c8255f-4a9e-4251-9a7d-314640703f76" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "eb509704-9140-4b6a-b875-e9c0fffe0ff8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015604Z:eb509704-9140-4b6a-b875-e9c0fffe0ff8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "229b53c5-d62e-41d1-907d-22f8bf461e0a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bfc87e0a-f1f5-4073-a24e-79f1825de53c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "863d1a96-099c-4550-b0ad-ac971ed85159" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015605Z:863d1a96-099c-4550-b0ad-ac971ed85159" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "be0f55b2-dcfa-4d64-84ae-24c62ad15656" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "13fd1eff-e139-43a9-97fc-d139455062b3" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "edc5833f-58ae-409c-ad5e-78b56c2b8175" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015605Z:edc5833f-58ae-409c-ad5e-78b56c2b8175" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "093e03bf-82b7-4329-96a2-e016aa0ffada" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwMTktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "4a4700a4-1a26-47a6-ab65-ad129a8ce527" + ], + "x-ms-correlation-request-id": [ + "4a4700a4-1a26-47a6-ab65-ad129a8ce527" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015606Z:4a4700a4-1a26-47a6-ab65-ad129a8ce527" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "22d525f7-d50d-422c-a151-b746c38b8baa" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:56:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwMTktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "868e8101-8302-4c94-ae25-acb96c26a65f" + ], + "x-ms-correlation-request-id": [ + "868e8101-8302-4c94-ae25-acb96c26a65f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015606Z:868e8101-8302-4c94-ae25-acb96c26a65f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-3019" + ], + "CreateServer": [ + "sqlcrudtest-3052" + ], + "TestCreateUpdateDropJobCredential": [ + "sqlcrudtest-5992" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json new file mode 100644 index 000000000000..4d81e551efa6 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json @@ -0,0 +1,1738 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8280\": \"2018-05-18 01:49:47Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "5f70a9d2-1bc3-482c-b970-704e8e730577" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280\",\r\n \"name\": \"sqlcrudtest-8280\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8280\": \"2018-05-18 01:49:47Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "1014406f-9a29-421a-bcd8-4788a969e242" + ], + "x-ms-correlation-request-id": [ + "1014406f-9a29-421a-bcd8-4788a969e242" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014948Z:1014406f-9a29-421a-bcd8-4788a969e242" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "2eb29fcd-9f9b-46a4-8dd5-a5d999b475ea" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverOperationResults/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "6e785afc-cb07-4e53-afaf-39ab28034920" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "1d55af95-10f9-4e35-95c5-6d5bdb4f5172" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T014950Z:1d55af95-10f9-4e35-95c5-6d5bdb4f5172" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:49:59 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8edc8344-b7fb-4a61-a3cd-a9d98d8e4b61" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "534561d0-6563-4ff5-9a28-a238c12c7600" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015000Z:534561d0-6563-4ff5-9a28-a238c12c7600" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "15d66bb2-4ee0-4de5-b1e3-dcc74865c837" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "19bcebd5-41a2-466c-a05c-c6f64e5ba3f0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015020Z:19bcebd5-41a2-466c-a05c-c6f64e5ba3f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "07681f60-7586-4231-8262-aebd16c28cba" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "6ba635f2-d745-4f3a-a1b4-1ce07ff0813a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015040Z:6ba635f2-d745-4f3a-a1b4-1ce07ff0813a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-70.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70\",\r\n \"name\": \"sqlcrudtest-70\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1fd3cffc-eeaa-4efd-8b46-c63e9cf520db" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "6a4d4e60-e0c4-449d-a987-e8ce53848022" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015040Z:6a4d4e60-e0c4-449d-a987-e8ce53848022" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNTUzNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "42605303-5c23-4839-8681-f8b6daa2788a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "5a3ea1c2-6576-403c-b0ba-8ec1f778e58d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "9736468c-d5a4-4ed7-b8e1-572ffcab40e9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015041Z:9736468c-d5a4-4ed7-b8e1-572ffcab40e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:50:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4a8cac52-96a6-4472-b92a-8e1d9b340cef" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "b905f245-b4f0-426e-acf9-48c73d4a75e6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015056Z:b905f245-b4f0-426e-acf9-48c73d4a75e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c76db829-4891-4942-b5c2-052fdd4867b9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "ea4e371f-c051-4679-996e-2f10c9b029ef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015111Z:ea4e371f-c051-4679-996e-2f10c9b029ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c9b32992-0881-4b31-92d0-01e9793cb02e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "d7311d2f-70c3-4df1-b2be-7545eb4eeb18" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015126Z:d7311d2f-70c3-4df1-b2be-7545eb4eeb18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNTUzNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"7a645adf-4ce2-438b-bb7b-99ef97fcb20c\",\r\n \"creationDate\": \"2018-05-18T01:50:41.847Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:21:19.207Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\",\r\n \"name\": \"sqlcrudtest-5536\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6fa9ee64-5ef9-4f02-a58f-c2227a62a3e1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "57b630b6-cc3a-4500-a800-58beda2f90cc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015126Z:57b630b6-cc3a-4500-a800-58beda2f90cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "233" + ], + "x-ms-client-request-id": [ + "0050b407-3752-4777-8899-eee1a5b96f88" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "7f923ca2-c13e-4e09-bf7a-c11a44a128bd" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "be311460-b3a6-4a73-968f-46f36fb33ef5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015127Z:be311460-b3a6-4a73-968f-46f36fb33ef5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8385e82c-4146-4d33-ac26-d32afc653ec0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "bb0b913e-0d9f-4ac0-8e42-958982d96ab2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015142Z:bb0b913e-0d9f-4ac0-8e42-958982d96ab2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:51:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ede5d092-8233-4c7f-8282-147205fd5e33" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "cf186837-bfee-4ee3-9369-6bea5ef6e2cc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015157Z:cf186837-bfee-4ee3-9369-6bea5ef6e2cc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "453fd724-a56d-4b13-b406-9251d72ab390" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "f52e8d2a-38d2-4e00-8f04-0fa65ee51869" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015213Z:f52e8d2a-38d2-4e00-8f04-0fa65ee51869" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e4f5c365-4c83-455a-8f1d-bb385252b721" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "0f43634a-414a-401a-878e-b0d20e692bcc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015228Z:0f43634a-414a-401a-878e-b0d20e692bcc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8aa34515-50bb-4019-b534-b43a78d378f9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "59956930-e5dd-4302-b829-e10d1ffe45fa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015243Z:59956930-e5dd-4302-b829-e10d1ffe45fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de287e13-6eb0-4968-a332-a9d22bb31972" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "3ae86910-82cb-42c9-8c1e-7ef4aba6cfe7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015243Z:3ae86910-82cb-42c9-8c1e-7ef4aba6cfe7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvY3JlZGVudGlhbHMvZHVtbXlsb2dpbj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "5c981184-6e05-42f2-8de8-3c7d15c28db8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "290" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "0f45d530-59ca-4b9c-9dc7-c938fb21b753" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "9a089f57-57fc-4b68-b1b7-eb8ef602dcef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015243Z:9a089f57-57fc-4b68-b1b7-eb8ef602dcef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvdGFyZ2V0R3JvdXBzL3RnMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-70\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "382" + ], + "x-ms-client-request-id": [ + "b85db771-1179-4c83-8fa9-9575d64ef0c2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-70\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "536" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a7b9decd-bc91-4c6c-a8a6-c42804ddbb22" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "fe9db2f3-a08a-4ad6-95f9-81a0a776cb76" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015244Z:fe9db2f3-a08a-4ad6-95f9-81a0a776cb76" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "fec1092a-c3fe-47e0-b138-69f4e4fa85b9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "395" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "298c4c5f-bf8f-4b6a-85b2-e02cfeb85b8a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "15ed289a-1aea-4512-9f62-683045886241" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015244Z:15ed289a-1aea-4512-9f62-683045886241" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "458" + ], + "x-ms-client-request-id": [ + "ad24e4af-75b9-4d8a-a715-5c0178123dbd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "863" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "43024d33-19fb-4bb0-94ec-ccd1b26b781a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "9fce6364-5342-4bf2-b343-065bb5b4eb5d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015245Z:9fce6364-5342-4bf2-b343-065bb5b4eb5d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"subscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1197" + ], + "x-ms-client-request-id": [ + "9b6614e0-4897-4365-8584-8f7d29f697d3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c9246d29-daf3-4658-8d7c-1729e012680e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "554a1267-54af-4305-974b-ace34f7e5ad7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015246Z:554a1267-54af-4305-974b-ace34f7e5ad7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "68501a29-a61c-40dd-8ac4-1de265a3f83c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "552adf15-400e-44bd-b9be-3089309a18a4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "21bed326-906a-4eaa-a9da-668fa3736795" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015246Z:21bed326-906a-4eaa-a9da-668fa3736795" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e898082-2d26-47ba-a0e2-651adf9b7c95" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "65fbdfe4-99ee-42f9-979b-b1d4be5fd069" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "e6324b08-9fe8-4af7-8960-558602da097a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015246Z:e6324b08-9fe8-4af7-8960-558602da097a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b96a71c-7273-48ef-b9af-7d69a6f4f77b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyODAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "51fa52af-2017-421f-86b5-75149d0ec40e" + ], + "x-ms-correlation-request-id": [ + "51fa52af-2017-421f-86b5-75149d0ec40e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015247Z:51fa52af-2017-421f-86b5-75149d0ec40e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "66a7520a-e15c-4086-9f6d-74e7ce1df4dd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 01:52:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyODAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "204bab47-8838-44f8-91f7-4ce797ca1e18" + ], + "x-ms-correlation-request-id": [ + "204bab47-8838-44f8-91f7-4ce797ca1e18" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T015247Z:204bab47-8838-44f8-91f7-4ce797ca1e18" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-8280" + ], + "CreateServer": [ + "sqlcrudtest-70" + ], + "TestCreateUpdateDropJobStep": [ + "sqlcrudtest-5536" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json new file mode 100644 index 000000000000..311d69edb130 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json @@ -0,0 +1,1726 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8439\": \"2018-05-18 02:08:55Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "9b294804-0b29-4f7d-807d-2c3d180d4644" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439\",\r\n \"name\": \"sqlcrudtest-8439\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8439\": \"2018-05-18 02:08:55Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:08:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "591e1ddd-ab10-4051-af74-0fc1e173b05f" + ], + "x-ms-correlation-request-id": [ + "591e1ddd-ab10-4051-af74-0fc1e173b05f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020856Z:591e1ddd-ab10-4051-af74-0fc1e173b05f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "f5d4157c-690f-4a47-9f93-1cf205d58060" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverOperationResults/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "1ba5103e-f115-4bca-bb0e-ad4987ac5e3f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "02b70de8-a117-4ed1-b94d-357d6da7dedb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020901Z:02b70de8-a117-4ed1-b94d-357d6da7dedb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2fb917cf-801e-4e49-94a0-584b3f7e0c0f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "9e9ae5ed-2680-40ca-90db-576ab89d8708" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020911Z:9e9ae5ed-2680-40ca-90db-576ab89d8708" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4e3d98f4-fef0-459c-86d7-ee419daff3dc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "fe27887b-9403-4ef3-8397-4386d5d973bf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020931Z:fe27887b-9403-4ef3-8397-4386d5d973bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "26c34bbe-e5fb-4390-a0a3-a88cea41cc62" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "388a853f-f340-472f-bbbc-fb2fb1fe1d17" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020951Z:388a853f-f340-472f-bbbc-fb2fb1fe1d17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9682.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682\",\r\n \"name\": \"sqlcrudtest-9682\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a8bfab4d-0c80-4368-bed2-327a2734fbb3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "fad56f04-36d5-4adb-9508-1a01905f6074" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020951Z:fad56f04-36d5-4adb-9508-1a01905f6074" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NjU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "50e9ab21-7745-4ac3-ad13-524d9f7d702f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:09:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "665d8040-3056-4d89-ac9c-501cc346792c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "c42df404-d534-4513-998a-663e77c7a1a3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T020953Z:c42df404-d534-4513-998a-663e77c7a1a3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:07 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a113ea25-5c32-481f-8b82-11d29999e3d9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "87923036-a16f-4b5f-8df1-f2da272eeae9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021008Z:87923036-a16f-4b5f-8df1-f2da272eeae9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8075ae56-5932-430b-8c0a-2208b7f50a4e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "0846c4d9-e906-401f-a8fa-f4fdb2e10f58" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021023Z:0846c4d9-e906-401f-a8fa-f4fdb2e10f58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "faf03d7f-c54f-4bc9-b999-e52754b4be3a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "02f4d2da-d956-449c-8605-7514a63e8308" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021038Z:02f4d2da-d956-449c-8605-7514a63e8308" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NjU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"0c1971af-c80b-40af-aef7-b15a1fd9e008\",\r\n \"creationDate\": \"2018-05-18T02:09:53.273Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:40:33.04Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\",\r\n \"name\": \"sqlcrudtest-6658\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8fb1931b-b941-41f9-9b98-a7015edfbc5f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "4d14e362-2526-4ebf-aa72-79376e39c448" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021038Z:4d14e362-2526-4ebf-aa72-79376e39c448" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "b0fecd09-8f58-4881-bb50-99d50257ce12" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "70" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "ffe52cea-2a9a-4732-aff0-90b5c99bdd8b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "f1988fe5-a740-44bf-a774-7562d35d1f6d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021039Z:f1988fe5-a740-44bf-a774-7562d35d1f6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:10:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "80efc866-825c-4293-936d-cddc8a3f1896" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "7cb9de30-074d-486c-a3f7-33cc8b3edb66" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021054Z:7cb9de30-074d-486c-a3f7-33cc8b3edb66" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:11:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fd41e475-68a0-455b-9a41-1b0e718d5043" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "3df93709-4900-402e-934f-f54cb39cec4a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021109Z:3df93709-4900-402e-934f-f54cb39cec4a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:11:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "bd273ef5-c5c4-47ea-abed-6146f2117412" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "da4ab16b-5ca0-41eb-b8d3-dcf97021c4cf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021124Z:da4ab16b-5ca0-41eb-b8d3-dcf97021c4cf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:11:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3a2e5d87-a2c7-4e93-a304-8d8fd6fc47da" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "bd217bda-45f0-4202-bf0d-e89e1328467c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021139Z:bd217bda-45f0-4202-bf0d-e89e1328467c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:11:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3917201e-6d13-4dbd-8728-f015f600b02c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "c12b2b47-460e-48fe-b61f-8833122249e1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021154Z:c12b2b47-460e-48fe-b61f-8833122249e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "13f269e0-a8cb-4a99-9af5-92d74e51877b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "c4522743-f02d-441e-bd92-e9d242b28be4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021209Z:c4522743-f02d-441e-bd92-e9d242b28be4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d0b58104-795a-407b-ae03-d7529c6d3cea" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "8509015d-97b7-43dd-b4dc-2ebb5d134534" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021224Z:8509015d-97b7-43dd-b4dc-2ebb5d134534" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "49ae86f1-2699-4d2d-9cf0-36378c0f7f2b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "9b3bd1ef-c546-446d-b9a8-7ac506eb42aa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021224Z:9b3bd1ef-c546-446d-b9a8-7ac506eb42aa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "fc46c53a-ec48-4edf-b662-45e406f619de" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "011dfa85-578a-413c-a3f0-700f4ea8fe02" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "8d245ae9-f27b-4acb-ad03-af9a898704a1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021226Z:8d245ae9-f27b-4acb-ad03-af9a898704a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "372" + ], + "x-ms-client-request-id": [ + "56df17b1-3976-4628-b176-21c0ea3b8d3b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "528" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ec4840fe-2b35-4f2f-b209-0959ab5bb70d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "1f644d7c-aa8b-4082-a57f-a7b6551a5d33" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021226Z:1f644d7c-aa8b-4082-a57f-a7b6551a5d33" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1267" + ], + "x-ms-client-request-id": [ + "2c2ac406-3fef-428a-81e6-fa8e46d75db1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d94c9f3a-81a8-4e50-8f35-c205dc8ba20e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "c3cd44bb-00be-4663-a42a-7fe8be68f418" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021227Z:c3cd44bb-00be-4663-a42a-7fe8be68f418" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a5e168d-344c-4eff-a4ae-ce243f05afbe" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8ea896a8-0449-427e-9ffb-f2cc3dbc028e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "7090a8eb-6d3d-48f6-b89c-f53b09e09bac" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021227Z:7090a8eb-6d3d-48f6-b89c-f53b09e09bac" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4b0b76a4-dd0a-4ee7-9db0-a70997ca9715" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ac65e6b0-773d-4a17-8f10-aaf6a376c123" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "26776d95-65b2-4243-95ab-4075aacfdd94" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021227Z:26776d95-65b2-4243-95ab-4075aacfdd94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e56fe0e-1efb-4924-98fb-74fdd9210f41" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0MzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "644f08d8-3c28-4568-b310-c9181b8aaf1f" + ], + "x-ms-correlation-request-id": [ + "644f08d8-3c28-4568-b310-c9181b8aaf1f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021227Z:644f08d8-3c28-4568-b310-c9181b8aaf1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "85d1950f-76a0-4c39-ad4f-9da5cfb68450" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 02:12:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0MzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + ], + "x-ms-correlation-request-id": [ + "41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T021228Z:41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-8439" + ], + "CreateServer": [ + "sqlcrudtest-9682" + ], + "TestCreateUpdateDropTargetGroup": [ + "sqlcrudtest-6658" + ] + }, + "Variables": { + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json new file mode 100644 index 000000000000..2b0da26b149f --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json @@ -0,0 +1,2738 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7276\": \"2018-05-18 03:04:04Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "06e2580b-7e7c-4562-8a83-34e9b9dda01e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276\",\r\n \"name\": \"sqlcrudtest-7276\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7276\": \"2018-05-18 03:04:04Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-request-id": [ + "75b687e7-ee3c-4263-aa1e-022cff90deae" + ], + "x-ms-correlation-request-id": [ + "75b687e7-ee3c-4263-aa1e-022cff90deae" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030405Z:75b687e7-ee3c-4263-aa1e-022cff90deae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "fc894820-5f49-412d-a7c2-8441841577de" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:08 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverOperationResults/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "e5ec2759-c49a-4708-9639-0d603c57ef0c" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "6e2508ff-fe6f-4124-ac8e-58d28f09c23b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030408Z:6e2508ff-fe6f-4124-ac8e-58d28f09c23b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "01944712-5784-460b-9a58-488e83deb636" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "d818ba5c-16d6-43da-9d27-a098e9de55d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030418Z:d818ba5c-16d6-43da-9d27-a098e9de55d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "11c4face-b9cc-4f4b-bf92-9adca285fc47" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "2cf39562-13ef-4545-b327-4678945d2ffc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030438Z:2cf39562-13ef-4545-b327-4678945d2ffc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:04:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eb6ad01f-1588-475e-bdf3-0480bb80281f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "dbb97c39-499b-43de-8468-06ff8bf4f3ca" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030458Z:dbb97c39-499b-43de-8468-06ff8bf4f3ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:05:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fceda5bf-dea0-469f-a5f8-3bc30ddc72d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "933e215c-8409-4977-87cd-eca233d62136" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030518Z:933e215c-8409-4977-87cd-eca233d62136" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:05:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8688d426-c5b1-43d4-8e8b-61c4569a0029" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "5f438d54-e463-4a8f-9494-dac531d50e06" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030534Z:5f438d54-e463-4a8f-9494-dac531d50e06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:05:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f1ae494c-5d7f-4f78-8cd8-a8e7f5489d7d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "e7b76c85-3ce9-46a4-ae16-cae6a2c0de88" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030549Z:e7b76c85-3ce9-46a4-ae16-cae6a2c0de88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "902f57a8-dc42-487e-9150-3abb197cec1f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "7297f647-01ac-4a0d-b85f-c3312b204e29" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030604Z:7297f647-01ac-4a0d-b85f-c3312b204e29" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7378.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378\",\r\n \"name\": \"sqlcrudtest-7378\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "72bcaaaa-2153-463b-9ef9-1771a97359e4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "660d544f-5180-450b-ba0c-efaa332394c7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030604Z:660d544f-5180-450b-ba0c-efaa332394c7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/firewallRules/allowAll?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2ZpcmV3YWxsUnVsZXMvYWxsb3dBbGw/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ], + "x-ms-client-request-id": [ + "bd170b63-da64-4ea6-9b17-af0ff1732a80" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/firewallRules/allowAll\",\r\n \"name\": \"allowAll\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West US 2\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "340" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:04 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "f9e1e810-36f5-4e2b-abf4-a44b52349e26" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "03d9fedd-fe5a-4463-a627-6eb3c87a81ee" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030605Z:03d9fedd-fe5a-4463-a627-6eb3c87a81ee" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMjgwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "c27301cb-ae45-43cb-a631-dec6b1ced66a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "d659f7c3-ead5-4a2f-8b4d-14c0b82a417b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "5cd10198-1cd0-4803-8cd2-156ef27c4877" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030605Z:5cd10198-1cd0-4803-8cd2-156ef27c4877" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a5436133-f50d-4e17-a18c-f00746e9aa09" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "2f761f92-a228-4b7b-9b78-9374d3e04df5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030620Z:2f761f92-a228-4b7b-9b78-9374d3e04df5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5d5e8c58-194a-48cb-91b9-bb03d0473bc9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "ccf7c356-2420-48b5-890b-da9b298994dc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030635Z:ccf7c356-2420-48b5-890b-da9b298994dc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cba8c9d1-bae4-4834-8a4c-212ea730b309" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "f244d856-11b6-4673-bc6f-16f701201227" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030651Z:f244d856-11b6-4673-bc6f-16f701201227" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMjgwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"d2fead04-a3d4-4699-8a9a-8185f60d179c\",\r\n \"creationDate\": \"2018-05-18T03:06:06.107Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T03:36:39.083Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\",\r\n \"name\": \"sqlcrudtest-1280\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "11c6bfd6-2a2b-421f-bbdd-27f40705ae24" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "4ab063ad-0696-4d5f-956b-c484f0c54046" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030651Z:4ab063ad-0696-4d5f-956b-c484f0c54046" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "3aba23a6-dbf5-488d-b410-5e2c32fea208" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "70" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:06:50 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "cbc9efba-8c21-40b5-8868-6c24e287c408" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "a86ce364-28bf-43cc-a1aa-7b59d91b6a68" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030651Z:a86ce364-28bf-43cc-a1aa-7b59d91b6a68" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:07:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f906e787-f3ad-4228-92b0-c9d5f65e2bd3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "e6f1213a-bfcd-40a2-b35e-31e6172d2a39" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030706Z:e6f1213a-bfcd-40a2-b35e-31e6172d2a39" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:07:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1bee5de9-88f4-4843-a657-e3cbef065746" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "f3989880-18b0-456d-a4f0-479c466244e8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030721Z:f3989880-18b0-456d-a4f0-479c466244e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:07:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "20fcbc60-8408-4178-a47b-ed334245f261" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "4fdfe6b4-462b-43bd-9362-b543b368d948" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030736Z:4fdfe6b4-462b-43bd-9362-b543b368d948" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:07:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8395b813-6f85-441d-9d5e-6e6809070e5a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "fcb1e9d8-6771-4404-a3c0-38f931098283" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030751Z:fcb1e9d8-6771-4404-a3c0-38f931098283" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b51b6e43-3e96-460a-8c0d-16182b253748" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "e584dfbd-088d-47eb-a656-2d47a290fbf7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030806Z:e584dfbd-088d-47eb-a656-2d47a290fbf7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "99a99280-b952-4728-b365-3b6ddfd437cb" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "1cd74cdd-a47d-4fac-813e-eb5fbea23f0f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030821Z:1cd74cdd-a47d-4fac-813e-eb5fbea23f0f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4e5ce4f8-948f-4fd2-a3aa-2419e25b6347" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "08d00152-259f-4b5a-981a-4c28799ff364" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030836Z:08d00152-259f-4b5a-981a-4c28799ff364" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5073333d-033e-4b73-b5d2-b23d02db681d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "2e595697-bb17-47d0-b0a8-8ed875a09901" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030851Z:2e595697-bb17-47d0-b0a8-8ed875a09901" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "eea29f5c-8d10-4ffb-be6f-0b28962fc67a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "f890b9ee-2fab-4b0f-b888-8034f46a3bc4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030851Z:f890b9ee-2fab-4b0f-b888-8034f46a3bc4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "4ef165af-86fb-4260-b3ec-9b90a73f8eed" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "8489e2d8-16b7-4ad2-8333-25888a70307e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "6444b11c-9607-474a-a4c3-c32d5e8c1084" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030852Z:6444b11c-9607-474a-a4c3-c32d5e8c1084" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "228" + ], + "x-ms-client-request-id": [ + "eda93ee6-7cf3-4f3a-b947-80c9905079a0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:52 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "12629311-abbb-4b82-9321-43c174b1177b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "d13ac651-9f45-4ea2-bfd0-87294cb94f71" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030853Z:d13ac651-9f45-4ea2-bfd0-87294cb94f71" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "6521ae74-9785-4820-a1e7-fc50d1ba5438" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "397" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "403e8a7e-cfcf-4683-a9f2-1c9a83afc1cb" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "249fcc8f-5ba1-4dd9-a1e0-6e237446d2a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030853Z:249fcc8f-5ba1-4dd9-a1e0-6e237446d2a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "462" + ], + "x-ms-client-request-id": [ + "df314c76-2558-4ee8-8365-722a86c2abe2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "869" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "560b19c6-ef5c-4ac7-9975-102cd5acc129" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "8441cec9-0366-450f-b2e8-36a630090cb9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030854Z:8441cec9-0366-450f-b2e8-36a630090cb9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/start?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RhcnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "efe04e21-67ac-46fe-b009-6367d3dc6936" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Created\",\r\n \"provisioningState\": \"Created\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution created.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:08:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c0dd9f6c-c120-4718-be21-2e802c20e891" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "a4a32cf0-ce7a-4040-94fe-4fe97413eccc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030854Z:a4a32cf0-ce7a-4040-94fe-4fe97413eccc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1aaf74da-e6db-451d-b933-5e6261f37050" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14962" + ], + "x-ms-correlation-request-id": [ + "55c2f2e7-723d-4ace-b142-0878cc76578d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:55c2f2e7-723d-4ace-b142-0878cc76578d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7741005f-1c07-4a15-897b-3f981ebe965a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "22a9c67c-69bf-48c3-bef5-aa5222646486" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14959" + ], + "x-ms-correlation-request-id": [ + "7149e253-fade-414e-95fc-7cf642d95870" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:7149e253-fade-414e-95fc-7cf642d95870" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9leGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3e343e0b-d6fc-448d-b8cb-70b038afb94e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:58.5850226Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.3664418Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"name\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f5eb320d-3dad-4d6f-9a75-635b53b98db3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14961" + ], + "x-ms-correlation-request-id": [ + "c7e095f6-c949-4df5-8dea-08e75765ab4b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:c7e095f6-c949-4df5-8dea-08e75765ab4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bd981b90-b033-4995-8b97-870b853e1629" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:58.5850226Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.3664418Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"name\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8d43973d-b471-4c55-a6b2-0699996ad26d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14960" + ], + "x-ms-correlation-request-id": [ + "ee5b6f7c-1535-4e89-a03b-7e7f659eb836" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:ee5b6f7c-1535-4e89-a03b-7e7f659eb836" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b46faeb8-dfd4-4927-a291-dd132d337588" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:00.3976512Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.350817Z\",\r\n \"endTime\": \"2018-05-18T03:09:22.3985736Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:14.0857214Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6861abfb-6488-4289-8bfc-1d8d5a251e59" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14958" + ], + "x-ms-correlation-request-id": [ + "b6c8f168-aca8-4777-b14a-27b7b90f9509" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030925Z:b6c8f168-aca8-4777-b14a-27b7b90f9509" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eedbbf9a-b685-4aa3-a9c4-3f676a77b2f5" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:00.3976512Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.350817Z\",\r\n \"endTime\": \"2018-05-18T03:09:22.3985736Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:14.0857214Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f05bcc22-8fef-466b-9878-15f9e7b9865d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14957" + ], + "x-ms-correlation-request-id": [ + "742706d2-65f4-417f-b29c-ae264cc654e0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030926Z:742706d2-65f4-417f-b29c-ae264cc654e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "defa2fb7-5b68-43c7-a70e-65099779f5f8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "313422cf-3f1d-4c9f-898e-f5400fe89545" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14956" + ], + "x-ms-correlation-request-id": [ + "1e03c56f-f2a8-4e6e-a206-80f585a3e6ae" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030926Z:1e03c56f-f2a8-4e6e-a206-80f585a3e6ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a4b1e561-88f4-4b87-9414-72e002423589" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7bcf4668-8701-47f6-94e9-5c35cb807b0d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14955" + ], + "x-ms-correlation-request-id": [ + "f455572b-306d-4efb-ae04-c02ece9c27e6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030926Z:f455572b-306d-4efb-ae04-c02ece9c27e6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDEvdGFyZ2V0cy8wODgxNmQ0NS1lMmZiLTRlNGEtOWQ2Yi02N2I2ZjA3NDk5Mzc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8dd79bb5-fc8f-40d1-828f-5384ec9e3586" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d161fa9e-7d0b-4b32-bb21-0ec90bb82bfc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14954" + ], + "x-ms-correlation-request-id": [ + "5fb2d14f-8ce8-4021-bcb8-9b74f57d3a89" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030926Z:5fb2d14f-8ce8-4021-bcb8-9b74f57d3a89" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/cancel?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "afb8c9d6-c24d-4242-a99f-201c8f411aa1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2c0e85ea-2d58-4995-b9da-2d59df10b4fd" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "e2b8c979-4d08-44c2-83fc-1785c370a602" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030927Z:e2b8c979-4d08-44c2-83fc-1785c370a602" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "969a5928-112b-4b0c-b7ce-b975b6f89a51" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDcyNzYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + ], + "x-ms-correlation-request-id": [ + "233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030929Z:233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "80e7614c-6c19-46c2-ba9c-f5dd46cf4d10" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 03:09:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDcyNzYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + ], + "x-ms-correlation-request-id": [ + "cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T030929Z:cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-7276" + ], + "CreateServer": [ + "sqlcrudtest-7378" + ], + "TestStartStopGetJobExecution": [ + "sqlcrudtest-1280" + ] + }, + "Variables": { + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file From c5b67c12b0c1faa367b7bb9fae1a0784a5ad599a Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Fri, 18 May 2018 15:39:39 -0700 Subject: [PATCH 07/10] Updating .csproj and AssemblyInfo.cs to 1.16.0 and re-recorded tests. Updated tests based on feedback --- .../Microsoft.Azure.Management.Sql.csproj | 11 +- .../Management.Sql/Properties/AssemblyInfo.cs | 6 +- .../TestCreateUpdateDropAgent.json | 752 ++++---- .../TestCreateUpdateDropJob.json | 1678 +++-------------- .../TestCreateUpdateDropJobCredential.json | 562 +++--- .../TestCreateUpdateDropJobStep.json | 640 ++++--- .../TestCreateUpdateDropTargetGroup.json | 533 +++--- .../TestStartStopGetJobExecution.json | 1121 ++++------- .../SqlManagement/Sql.Tests/Sql.Tests.csproj | 2 +- .../SqlDatabaseAgentScenarioTests.cs | 61 +- 10 files changed, 1746 insertions(+), 3620 deletions(-) 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 472a64da17da..de5bcc651d9e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -7,19 +7,12 @@ Microsoft.Azure.Management.Sql Azure SQL Management SDK library Microsoft.Azure.Management.Sql - 1.15.0-preview + 1.16.0-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 fe4eb9a8d972..5373256cc58e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Properties/AssemblyInfo.cs @@ -22,8 +22,4 @@ [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.15.0.0")] - - - - +[assembly: AssemblyFileVersion("1.16.0.0")] \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json index cc14474b82e3..5c7a6de253b4 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropAgent.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3225?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMyMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1295\": \"2018-05-18 01:59:10Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3225\": \"2018-05-18 22:23:23Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "dcf05856-c1ee-4384-838c-ecafa3350f25" + "995c5157-3005-4585-812d-07c3701b6091" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295\",\r\n \"name\": \"sqlcrudtest-1295\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1295\": \"2018-05-18 01:59:10Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225\",\r\n \"name\": \"sqlcrudtest-3225\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3225\": \"2018-05-18 22:23:23Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:59:11 GMT" + "Fri, 18 May 2018 22:23:23 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "7b982390-cf45-4452-aae1-99c06addf33d" + "04bcd53c-9184-419d-9e52-5f6f48a8d9bb" ], "x-ms-correlation-request-id": [ - "7b982390-cf45-4452-aae1-99c06addf33d" + "04bcd53c-9184-419d-9e52-5f6f48a8d9bb" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015911Z:7b982390-cf45-4452-aae1-99c06addf33d" + "WESTUS2:20180518T222324Z:04bcd53c-9184-419d-9e52-5f6f48a8d9bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", "RequestHeaders": { @@ -77,17 +77,17 @@ "183" ], "x-ms-client-request-id": [ - "0a66403d-e555-402d-999d-80eaffdb5b0c" + "0a23740d-52ef-4db0-8ab6-a502a9e748b8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:23:28.573Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:59:13 GMT" + "Fri, 18 May 2018 22:23:28 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverOperationResults/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverOperationResults/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "7aeae671-9ca3-4902-8b54-87533b2973b1" + "107af3cf-1445-4ef4-9058-fbfc8c9c9f72" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" + "1199" ], "x-ms-correlation-request-id": [ - "793881ea-6257-4b7b-b11b-ff0b504b99da" + "8322e13f-489c-49ce-89da-f51192303fc0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015914Z:793881ea-6257-4b7b-b11b-ff0b504b99da" + "WESTUS2:20180518T222328Z:8322e13f-489c-49ce-89da-f51192303fc0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xMDdhZjNjZi0xNDQ1LTRlZjQtOTA1OC1mYmZjOGM5YzlmNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"107af3cf-1445-4ef4-9058-fbfc8c9c9f72\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:23:28.573Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:59:23 GMT" + "Fri, 18 May 2018 22:23:38 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0d4229dc-59cb-4653-83b4-110c975719e1" + "216e3fc2-2345-4948-8ed9-49084c75824f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14998" ], "x-ms-correlation-request-id": [ - "102790ed-d0a0-47ac-84f8-a321e261dd2d" + "8f2dad78-a83f-455f-bdce-48dedee4b295" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015924Z:102790ed-d0a0-47ac-84f8-a321e261dd2d" + "WESTUS2:20180518T222338Z:8f2dad78-a83f-455f-bdce-48dedee4b295" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xMDdhZjNjZi0xNDQ1LTRlZjQtOTA1OC1mYmZjOGM5YzlmNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"107af3cf-1445-4ef4-9058-fbfc8c9c9f72\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:23:28.573Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:59:43 GMT" + "Fri, 18 May 2018 22:23:58 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b4339f34-d041-40c2-828b-eded80479cf1" + "b83dd2bb-268f-41bd-bb85-3a8c6e27a634" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14997" ], "x-ms-correlation-request-id": [ - "9cf6f0ed-2d47-4e79-ac90-5469a472d5a3" + "4b39a4ae-62df-404d-82a4-07ef5763a4ad" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015944Z:9cf6f0ed-2d47-4e79-ac90-5469a472d5a3" + "WESTUS2:20180518T222358Z:4b39a4ae-62df-404d-82a4-07ef5763a4ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7aeae671-9ca3-4902-8b54-87533b2973b1?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi83YWVhZTY3MS05Y2EzLTQ5MDItOGI1NC04NzUzM2IyOTczYjE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/107af3cf-1445-4ef4-9058-fbfc8c9c9f72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xMDdhZjNjZi0xNDQ1LTRlZjQtOTA1OC1mYmZjOGM5YzlmNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"7aeae671-9ca3-4902-8b54-87533b2973b1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:59:13.413Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"107af3cf-1445-4ef4-9058-fbfc8c9c9f72\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:23:28.573Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:04 GMT" + "Fri, 18 May 2018 22:24:18 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "83de2251-a075-4d19-ba60-79bb1afb4714" + "7cc1e679-117c-48c1-8900-b825e9730961" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14996" ], "x-ms-correlation-request-id": [ - "09d33a65-47c4-4fa3-970c-ec5f29025893" + "8865f0d1-e68a-47c1-aa8d-a57d5a6d1064" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020004Z:09d33a65-47c4-4fa3-970c-ec5f29025893" + "WESTUS2:20180518T222418Z:8865f0d1-e68a-47c1-aa8d-a57d5a6d1064" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9933.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933\",\r\n \"name\": \"sqlcrudtest-9933\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-1881.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881\",\r\n \"name\": \"sqlcrudtest-1881\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:04 GMT" + "Fri, 18 May 2018 22:24:18 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "390c6619-324e-4b8a-ae5f-f99558a4db15" + "9eb9b3eb-1960-4378-a85c-d2e1057a9c8e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14995" ], "x-ms-correlation-request-id": [ - "9356c880-eb42-4630-9bc6-7b681efbc478" + "7d442e1e-08be-420f-94f8-20ae1ab05b91" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020004Z:9356c880-eb42-4630-9bc6-7b681efbc478" + "WESTUS2:20180518T222419Z:7d442e1e-08be-420f-94f8-20ae1ab05b91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MTc5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDAzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,17 +394,17 @@ "29" ], "x-ms-client-request-id": [ - "63c35777-7cc2-4486-a094-7e36ee1be8c7" + "b2d00ce6-c9d5-4f0f-b51f-c83aa8d58b4b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "75" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:05 GMT" + "Fri, 18 May 2018 22:24:19 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "c98ffbe1-5516-4d2c-95b8-08801bd3bd6c" + "e4d6734f-fa36-427b-a658-4a1b1974862c" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" + "1198" ], "x-ms-correlation-request-id": [ - "8554f92c-fcd5-444b-be38-936131b0ba51" + "962422c1-8c23-4100-8f9b-5d4acc89bab6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020005Z:8554f92c-fcd5-444b-be38-936131b0ba51" + "WESTUS2:20180518T222419Z:962422c1-8c23-4100-8f9b-5d4acc89bab6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAyODU0MzM3LTdiZGUtNDkzOC04YmZlLTZjOTY2MzIzMDJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"02854337-7bde-4938-8bfe-6c96632302ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:20 GMT" + "Fri, 18 May 2018 22:24:34 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0ed0cbf9-843c-46bb-aa63-95bfd18502b9" + "6ae0c043-c884-4c2e-8c0f-e3814e687c56" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "14994" ], "x-ms-correlation-request-id": [ - "90257434-8595-4b95-81fd-3463f0ba27ef" + "40738475-9ec7-49de-a596-1844b4426ed4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020020Z:90257434-8595-4b95-81fd-3463f0ba27ef" + "WESTUS2:20180518T222434Z:40738475-9ec7-49de-a596-1844b4426ed4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAyODU0MzM3LTdiZGUtNDkzOC04YmZlLTZjOTY2MzIzMDJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"02854337-7bde-4938-8bfe-6c96632302ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:34 GMT" + "Fri, 18 May 2018 22:24:49 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "95b9989d-680c-42d6-ab27-e6e80183179e" + "5a3e7c2d-adf0-4bb2-a076-44138d0fa2d9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14993" ], "x-ms-correlation-request-id": [ - "b552f6fa-7e3f-466a-b56b-c6d7d7411136" + "b26a9500-3fa4-43db-8268-b656a84337ce" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020035Z:b552f6fa-7e3f-466a-b56b-c6d7d7411136" + "WESTUS2:20180518T222449Z:b26a9500-3fa4-43db-8268-b656a84337ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/fe11cd83-383b-4a13-a804-43e0fbf647a6?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2ZlMTFjZDgzLTM4M2ItNGExMy1hODA0LTQzZTBmYmY2NDdhNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAyODU0MzM3LTdiZGUtNDkzOC04YmZlLTZjOTY2MzIzMDJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fe11cd83-383b-4a13-a804-43e0fbf647a6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:00:04.75Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"02854337-7bde-4938-8bfe-6c96632302ca\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:49 GMT" + "Fri, 18 May 2018 22:25:04 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "813e6414-b726-4dca-8225-a7fc4c46ac07" + "ecf3da26-5939-4d7d-9782-b0a10c9e054f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14993" ], "x-ms-correlation-request-id": [ - "e6b45d74-b28d-44b3-be09-bb5ec40d1e86" + "579808e1-08e2-4b51-aca5-8dd13f92da97" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020050Z:e6b45d74-b28d-44b3-be09-bb5ec40d1e86" + "WESTUS2:20180518T222504Z:579808e1-08e2-4b51-aca5-8dd13f92da97" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MTc5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/02854337-7bde-4938-8bfe-6c96632302ca?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzAyODU0MzM3LTdiZGUtNDkzOC04YmZlLTZjOTY2MzIzMDJjYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"71eb4c36-ef7b-4da0-94b4-816ec6fa8a92\",\r\n \"creationDate\": \"2018-05-18T02:00:07.703Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:30:47.193Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"name\": \"sqlcrudtest-8179\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"02854337-7bde-4938-8bfe-6c96632302ca\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:24:19.44Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:49 GMT" + "Fri, 18 May 2018 22:25:19 GMT" ], "Pragma": [ "no-cache" @@ -671,6 +671,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -678,16 +681,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "569e6910-cc58-45ed-9cf2-87fae275048f" + "bb94c5b8-8d50-4598-9224-9c27ae7c36d5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14992" ], "x-ms-correlation-request-id": [ - "32aa5ec5-9597-4718-bb47-17bd765a5d3f" + "f5fba5d4-fa38-4e11-a70f-d342152667df" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020050Z:32aa5ec5-9597-4718-bb47-17bd765a5d3f" + "WESTUS2:20180518T222519Z:f5fba5d4-fa38-4e11-a70f-d342152667df" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,33 +702,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDAzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "235" - ], - "x-ms-client-request-id": [ - "473e66e2-30c5-4d7b-9408-7ab1d8f97f9b" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"40c23413-f2b8-4d17-ac08-4f8d2553dd44\",\r\n \"creationDate\": \"2018-05-18T22:24:20.203Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T22:55:04.673Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"name\": \"sqlcrudtest-5003\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { - "Content-Length": [ - "71" - ], "Content-Type": [ "application/json; charset=utf-8" ], @@ -736,34 +724,31 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:00:51 GMT" + "Fri, 18 May 2018 22:25:19 GMT" ], "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview" - ], - "Retry-After": [ - "15" + "Transfer-Encoding": [ + "chunked" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview" + "Vary": [ + "Accept-Encoding" ], "x-ms-request-id": [ - "0330b104-fb5b-422e-8f1f-217a3ed336c5" + "e4f437c9-9af4-4a42-94f2-f9935481abb4" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" ], "x-ms-correlation-request-id": [ - "105f1d97-a0c8-46c3-9341-ac2dc27b0dd1" + "53c9ab91-1db6-44df-a0e5-003d56f40c2f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020051Z:105f1d97-a0c8-46c3-9341-ac2dc27b0dd1" + "WESTUS2:20180518T222519Z:53c9ab91-1db6-44df-a0e5-003d56f40c2f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -772,32 +757,32 @@ "nosniff" ] }, - "StatusCode": 202 + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "282" + "235" ], "x-ms-client-request-id": [ - "7289acb0-5465-4943-843a-eddae3be0631" + "7c562501-3633-414a-9b52-d79724dc1dee" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:03:06.793Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -812,13 +797,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:06 GMT" + "Fri, 18 May 2018 22:25:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -827,19 +812,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "05353717-e7cd-4f00-9cc5-940c2057d1e4" + "c0c39577-0d57-4a0a-a0aa-447c11b89443" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" + "1197" ], "x-ms-correlation-request-id": [ - "6daf32cc-ae8c-4c9e-9dab-2d21e7e04611" + "86c60fd5-ac79-49a0-a954-53e511fc6aed" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020306Z:6daf32cc-ae8c-4c9e-9dab-2d21e7e04611" + "WESTUS2:20180518T222520Z:86c60fd5-ac79-49a0-a954-53e511fc6aed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -851,79 +836,33 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", - "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 02:01:05 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "962e801c-278a-4b97-bfb3-2eee33c69176" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" - ], - "x-ms-correlation-request-id": [ - "5382801b-4a1e-4d7d-8483-0a97fb97a24c" + "Content-Length": [ + "282" ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T020106Z:5382801b-4a1e-4d7d-8483-0a97fb97a24c" + "x-ms-client-request-id": [ + "3ec5ccf9-c0b6-480d-97da-fa01033f6b5d" ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "accept-language": [ + "en-US" ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:27:06.357Z\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "71" + ], "Content-Type": [ "application/json; charset=utf-8" ], @@ -934,13 +873,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:01:20 GMT" + "Fri, 18 May 2018 22:27:06 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/589c2307-9384-42a5-ac4f-697889d352e2?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -948,20 +887,20 @@ "Server": [ "Microsoft-HTTPAPI/2.0" ], - "Vary": [ - "Accept-Encoding" + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/589c2307-9384-42a5-ac4f-697889d352e2?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "c6cee747-713e-4cea-b0bf-cf0294440592" + "91da4f50-49d3-4371-885f-8d2a55d04a6e" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" ], "x-ms-correlation-request-id": [ - "eead4a70-31a7-4952-bca3-7b00f415872a" + "42985d0a-2985-4fd4-9d62-730f57508135" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020121Z:eead4a70-31a7-4952-bca3-7b00f415872a" + "WESTUS2:20180518T222706Z:42985d0a-2985-4fd4-9d62-730f57508135" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -970,20 +909,20 @@ "nosniff" ] }, - "StatusCode": 200 + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -995,7 +934,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:01:36 GMT" + "Fri, 18 May 2018 22:25:35 GMT" ], "Pragma": [ "no-cache" @@ -1013,16 +952,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e757e59c-b2f0-40ad-92e2-e345cdd6999a" + "98b82e11-a76d-48fb-9d0b-9d86c844ea9d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14990" ], "x-ms-correlation-request-id": [ - "88c9ad4d-2b50-4416-a19f-dacbee247c5d" + "62ad7316-35d5-4555-a09d-73df2efc0eb4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020136Z:88c9ad4d-2b50-4416-a19f-dacbee247c5d" + "WESTUS2:20180518T222535Z:62ad7316-35d5-4555-a09d-73df2efc0eb4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1034,17 +973,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1056,7 +995,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:01:50 GMT" + "Fri, 18 May 2018 22:25:49 GMT" ], "Pragma": [ "no-cache" @@ -1074,16 +1013,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1a0d68a3-feb0-480e-9053-a40ee36a41d4" + "7144a131-b544-4506-aa78-a8119468e23b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14989" ], "x-ms-correlation-request-id": [ - "164210ad-9569-4ec5-9b45-d208c5cac7a3" + "e5bf3963-02ba-40c4-80b8-819d9ad98906" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020151Z:164210ad-9569-4ec5-9b45-d208c5cac7a3" + "WESTUS2:20180518T222550Z:e5bf3963-02ba-40c4-80b8-819d9ad98906" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1095,17 +1034,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1117,7 +1056,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:02:05 GMT" + "Fri, 18 May 2018 22:26:05 GMT" ], "Pragma": [ "no-cache" @@ -1135,16 +1074,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3f5ecb06-a42f-46d5-bbe9-d2daf569ac8b" + "8e6f26a5-62f9-4c30-b589-8404cfdb60b4" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14988" ], "x-ms-correlation-request-id": [ - "a7ae6d14-5de5-4b1d-93bd-c7084f236d3e" + "a8fa9228-d1b9-4439-aa18-689cf689a326" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020206Z:a7ae6d14-5de5-4b1d-93bd-c7084f236d3e" + "WESTUS2:20180518T222605Z:a8fa9228-d1b9-4439-aa18-689cf689a326" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1156,17 +1095,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1178,7 +1117,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:02:21 GMT" + "Fri, 18 May 2018 22:26:20 GMT" ], "Pragma": [ "no-cache" @@ -1196,16 +1135,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "de606b73-7303-4742-8a45-94a47bd0b5e4" + "3ad1743b-1efa-4030-95b5-82d68ce9cda3" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "14987" ], "x-ms-correlation-request-id": [ - "38aad526-3a7d-407d-9701-baf99fb4571c" + "a536ad42-f865-421e-8a5d-0f49b4ce2075" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020221Z:38aad526-3a7d-407d-9701-baf99fb4571c" + "WESTUS2:20180518T222620Z:a536ad42-f865-421e-8a5d-0f49b4ce2075" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1217,17 +1156,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1239,7 +1178,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:02:35 GMT" + "Fri, 18 May 2018 22:26:35 GMT" ], "Pragma": [ "no-cache" @@ -1257,16 +1196,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "fda792c7-ca36-43bc-8703-2eef16666bd1" + "68994776-4d5e-4bff-84ac-cae10459b17d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14986" ], "x-ms-correlation-request-id": [ - "35bd6e36-b389-475a-b4b3-b413416cd93e" + "96dc20d2-f2aa-40f6-a70a-41de3a17d5ad" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020236Z:35bd6e36-b389-475a-b4b3-b413416cd93e" + "WESTUS2:20180518T222635Z:96dc20d2-f2aa-40f6-a70a-41de3a17d5ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1278,17 +1217,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1300,7 +1239,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:02:50 GMT" + "Fri, 18 May 2018 22:26:50 GMT" ], "Pragma": [ "no-cache" @@ -1318,16 +1257,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c2063be7-f1c4-45b2-8ac7-686eaf45c321" + "bea0e1d6-043c-4413-9807-a7d8d688ac79" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" + "14985" ], "x-ms-correlation-request-id": [ - "8dba1743-e8e6-4a30-9c5f-4a195edf38ce" + "9a715303-53f5-4d9f-afca-7135017ac720" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020251Z:8dba1743-e8e6-4a30-9c5f-4a195edf38ce" + "WESTUS2:20180518T222651Z:9a715303-53f5-4d9f-afca-7135017ac720" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1339,17 +1278,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/da0f55c0-f212-47b0-a372-77793f040dfc?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2RhMGY1NWMwLWYyMTItNDdiMC1hMzcyLTc3NzkzZjA0MGRmYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/e77328a1-09ac-4d62-b154-3553e39a4511?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2U3NzMyOGExLTA5YWMtNGQ2Mi1iMTU0LTM1NTNlMzlhNDUxMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"da0f55c0-f212-47b0-a372-77793f040dfc\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:00:50.983Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e77328a1-09ac-4d62-b154-3553e39a4511\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:25:20.477Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1361,7 +1300,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:06 GMT" + "Fri, 18 May 2018 22:27:05 GMT" ], "Pragma": [ "no-cache" @@ -1379,16 +1318,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5a22d6dc-d845-478b-aa74-a6cb32e5b1df" + "7c34e1e6-5320-42b9-972a-d8d8e1630ae6" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" + "14984" ], "x-ms-correlation-request-id": [ - "bd59a05b-ac31-4c9f-904f-31065763dca2" + "d6cec642-e3bc-45db-b60b-cd2e901e64cd" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020306Z:bd59a05b-ac31-4c9f-904f-31065763dca2" + "WESTUS2:20180518T222706Z:d6cec642-e3bc-45db-b60b-cd2e901e64cd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1400,17 +1339,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1422,7 +1361,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:06 GMT" + "Fri, 18 May 2018 22:27:05 GMT" ], "Pragma": [ "no-cache" @@ -1437,16 +1376,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "590c4684-f4d8-40b7-97bb-b555eb94cc37" + "b095716c-4aa0-4422-bb5c-aa568a00bb33" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" + "14983" ], "x-ms-correlation-request-id": [ - "93b40fe6-2e1d-43c5-ab03-2e00a49d68d2" + "3fc1e8df-a3d2-4bbc-9f45-3448fa46aa5f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020306Z:93b40fe6-2e1d-43c5-ab03-2e00a49d68d2" + "WESTUS2:20180518T222706Z:3fc1e8df-a3d2-4bbc-9f45-3448fa46aa5f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1458,17 +1397,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1480,7 +1419,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:21 GMT" + "Fri, 18 May 2018 22:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1495,16 +1434,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9d6e2867-0265-4420-9c38-728176a4c409" + "f94e570c-d8e4-44ff-9f2c-a8b6cbb76483" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "14981" ], "x-ms-correlation-request-id": [ - "4e8f2894-ea37-447d-b428-ab0e7f0aaad1" + "11fe392c-292d-4005-a72c-e70d00fbe7bb" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020321Z:4e8f2894-ea37-447d-b428-ab0e7f0aaad1" + "WESTUS2:20180518T222722Z:11fe392c-292d-4005-a72c-e70d00fbe7bb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1516,23 +1455,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2095ed28-3554-49f2-9968-e23424e4c0f4" + "5216af80-7d91-422c-9865-1ecc3227f4e3" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1544,7 +1483,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:21 GMT" + "Fri, 18 May 2018 22:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1559,16 +1498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f3dbcb03-b4b1-4e19-9b9e-1830ef5cc885" + "ffb6adbf-3136-41c7-9bef-d09570524cd1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" + "14980" ], "x-ms-correlation-request-id": [ - "1585eeb0-3acd-4d32-948e-b4bb5ffeaee1" + "577f47c6-7009-4b0b-8e4b-1b8e39a8dafc" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020322Z:1585eeb0-3acd-4d32-948e-b4bb5ffeaee1" + "WESTUS2:20180518T222722Z:577f47c6-7009-4b0b-8e4b-1b8e39a8dafc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1580,17 +1519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/22365697-dbed-4f93-9dcf-c79df22a6396?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzIyMzY1Njk3LWRiZWQtNGY5My05ZGNmLWM3OWRmMjJhNjM5Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/589c2307-9384-42a5-ac4f-697889d352e2?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzU4OWMyMzA3LTkzODQtNDJhNS1hYzRmLTY5Nzg4OWQzNTJlMj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"22365697-dbed-4f93-9dcf-c79df22a6396\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:03:06.793Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"589c2307-9384-42a5-ac4f-697889d352e2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:27:06.357Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1602,7 +1541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:20 GMT" + "Fri, 18 May 2018 22:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1620,16 +1559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c7435bdd-7102-435a-9bc2-f3124105f1d6" + "6e9c5d2e-2858-4831-87fe-105033786a04" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" + "14982" ], "x-ms-correlation-request-id": [ - "ab2166b7-5d0e-4f70-b326-1e58f597e4b9" + "0913f8be-2af1-4c88-96b5-88f8587ead3b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020321Z:ab2166b7-5d0e-4f70-b326-1e58f597e4b9" + "WESTUS2:20180518T222722Z:0913f8be-2af1-4c88-96b5-88f8587ead3b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1641,23 +1580,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5ed8eb2c-dcb6-4c93-a617-906d59194b0b" + "eac942c4-9eab-4845-9929-5c696253ed34" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/databases/sqlcrudtest-8179\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/databases/sqlcrudtest-5003\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1669,7 +1608,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:21 GMT" + "Fri, 18 May 2018 22:27:21 GMT" ], "Pragma": [ "no-cache" @@ -1684,16 +1623,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "9734ebc3-3f38-4b0d-a96f-2f44a8b4a752" + "cb7bd375-7e43-4117-b3f6-3f3b91fad361" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "14979" ], "x-ms-correlation-request-id": [ - "52e97a47-950d-4b28-b785-11fc760205a0" + "384a6d74-50ca-4d34-ba49-3de648ef5ec6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020322Z:52e97a47-950d-4b28-b785-11fc760205a0" + "WESTUS2:20180518T222722Z:384a6d74-50ca-4d34-ba49-3de648ef5ec6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1705,23 +1644,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/servers/sqlcrudtest-9933/jobAgents/agent1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05OTMzL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/servers/sqlcrudtest-1881/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xODgxL2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9b9d07f8-2f5e-4072-ac57-4105bb5a1c26" + "62b53c28-8080-4926-8e69-5fd49188983e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"DeleteJobAccount\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"DeleteJobAccount\",\r\n \"startTime\": \"2018-05-18T22:27:22.417Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -1736,13 +1675,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:21 GMT" + "Fri, 18 May 2018 22:27:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/7feeb1e5-10cf-4a40-bb76-41768fcb3eff?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -1751,19 +1690,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7feeb1e5-10cf-4a40-bb76-41768fcb3eff?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "c08111bc-0c7b-4631-a592-4b4246a82ab8" + "5e0753d3-ee32-425d-9192-d9c15ec5746f" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14999" ], "x-ms-correlation-request-id": [ - "dee0d3b2-2858-4502-91aa-72d2a58184b2" + "321d3a0f-b0e5-407d-9e3c-ec7f5a2362ba" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020322Z:dee0d3b2-2858-4502-91aa-72d2a58184b2" + "WESTUS2:20180518T222723Z:321d3a0f-b0e5-407d-9e3c-ec7f5a2362ba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1775,78 +1714,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2Q2NjlmNTFjLTM3MmYtNGJiOS05NGQyLTVkMzFmMzE3NWVhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"d669f51c-372f-4bb9-94d2-5d31f3175ea1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 02:03:37 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "bbd217a3-0272-4afe-b9b9-622c3bf1a9ee" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" - ], - "x-ms-correlation-request-id": [ - "7d7a5de5-b85d-4b9a-b253-44c2ade7c899" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T020337Z:7d7a5de5-b85d-4b9a-b253-44c2ade7c899" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1295/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/d669f51c-372f-4bb9-94d2-5d31f3175ea1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyOTUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2Q2NjlmNTFjLTM3MmYtNGJiOS05NGQyLTVkMzFmMzE3NWVhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3225/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7feeb1e5-10cf-4a40-bb76-41768fcb3eff?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMyMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdmZWViMWU1LTEwY2YtNGE0MC1iYjc2LTQxNzY4ZmNiM2VmZj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d669f51c-372f-4bb9-94d2-5d31f3175ea1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:03:22.213Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"7feeb1e5-10cf-4a40-bb76-41768fcb3eff\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:27:22.417Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1858,7 +1736,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:52 GMT" + "Fri, 18 May 2018 22:27:37 GMT" ], "Pragma": [ "no-cache" @@ -1876,16 +1754,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "309e4f7a-fb00-4e4a-813b-e7805affef16" + "0193c5c4-bd7b-433d-b0d7-b6fb44b33ae5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" + "14978" ], "x-ms-correlation-request-id": [ - "f89d8874-c01c-49e3-b516-ab4480c1e1d4" + "7aaf3f74-438e-41c8-ab3b-76cf8a9d7104" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020352Z:f89d8874-c01c-49e3-b516-ab4480c1e1d4" + "WESTUS2:20180518T222738Z:7aaf3f74-438e-41c8-ab3b-76cf8a9d7104" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1897,13 +1775,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3225?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMyMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "be93f8b7-4bff-4d22-aa82-24d5f4d10340" + "b26f3a66-1b2d-4eab-887b-ce670c8e3929" ], "accept-language": [ "en-US" @@ -1925,13 +1803,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:53 GMT" + "Fri, 18 May 2018 22:27:38 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyOTUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMyMjUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1940,13 +1818,13 @@ "14999" ], "x-ms-request-id": [ - "4c127b84-cff5-4842-9bf1-f3a333540b63" + "d7258248-a081-434c-9562-a09dc8ab394a" ], "x-ms-correlation-request-id": [ - "4c127b84-cff5-4842-9bf1-f3a333540b63" + "d7258248-a081-434c-9562-a09dc8ab394a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020353Z:4c127b84-cff5-4842-9bf1-f3a333540b63" + "WESTUS2:20180518T222738Z:d7258248-a081-434c-9562-a09dc8ab394a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1958,13 +1836,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1295?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyOTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3225?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMyMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5112a7b4-f409-4d33-a55b-f22f54215514" + "4d8f2a13-455d-45a3-bfd1-4c439cf0af09" ], "accept-language": [ "en-US" @@ -1986,13 +1864,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:03:53 GMT" + "Fri, 18 May 2018 22:27:38 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyOTUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMyMjUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2001,13 +1879,13 @@ "14998" ], "x-ms-request-id": [ - "d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + "c5fcfdbf-5b17-4c63-acee-f5627ff979b9" ], "x-ms-correlation-request-id": [ - "d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + "c5fcfdbf-5b17-4c63-acee-f5627ff979b9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020353Z:d4896aa3-bf18-454c-adc0-81b50eb4b8e2" + "WESTUS2:20180518T222738Z:c5fcfdbf-5b17-4c63-acee-f5627ff979b9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2021,13 +1899,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-1295" + "sqlcrudtest-3225" ], "CreateServer": [ - "sqlcrudtest-9933" + "sqlcrudtest-1881" ], "TestCreateUpdateDropAgent": [ - "sqlcrudtest-8179" + "sqlcrudtest-5003" ] }, "Variables": { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json index 128daa1ff9ce..b0550be8fdaf 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJob.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8545?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1NDU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1353\": \"2018-05-18 01:41:12Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8545\": \"2018-05-18 22:09:53Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "c26214bd-2e71-45ae-b28c-e86a151d2533" + "b96b3f40-e8ec-473d-9b7c-6affb5ea5016" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353\",\r\n \"name\": \"sqlcrudtest-1353\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1353\": \"2018-05-18 01:41:12Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545\",\r\n \"name\": \"sqlcrudtest-8545\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8545\": \"2018-05-18 22:09:53Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:41:12 GMT" + "Fri, 18 May 2018 22:09:53 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "101f4501-c2a2-4ebc-b54b-361e9742892b" + "c2e0a395-f91d-4754-a4a2-b74b461c9626" ], "x-ms-correlation-request-id": [ - "101f4501-c2a2-4ebc-b54b-361e9742892b" + "c2e0a395-f91d-4754-a4a2-b74b461c9626" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014113Z:101f4501-c2a2-4ebc-b54b-361e9742892b" + "WESTUS2:20180518T220954Z:c2e0a395-f91d-4754-a4a2-b74b461c9626" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ND9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", "RequestHeaders": { @@ -77,17 +77,17 @@ "183" ], "x-ms-client-request-id": [ - "c7ee5cb2-11ba-47cd-9aab-238493fc1223" + "f188d61a-02e0-48d7-99d8-04039b6aa224" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:09:59.323Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:41:18 GMT" + "Fri, 18 May 2018 22:09:58 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverOperationResults/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverOperationResults/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "58357293-c42d-470d-beff-38f46339a38a" + "62c17ae0-39da-4d85-ab1b-5c76e47d6888" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "e5e0d46c-3839-447f-8f22-357ebaffe647" + "6de309ce-ab83-49eb-bde7-f42bffb4b117" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014118Z:e5e0d46c-3839-447f-8f22-357ebaffe647" + "WESTUS2:20180518T220959Z:6de309ce-ab83-49eb-bde7-f42bffb4b117" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MmMxN2FlMC0zOWRhLTRkODUtYWIxYi01Yzc2ZTQ3ZDY4ODg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"62c17ae0-39da-4d85-ab1b-5c76e47d6888\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:09:59.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:41:28 GMT" + "Fri, 18 May 2018 22:10:08 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c2878e23-64a3-4d2b-9e57-aed9bcf1650e" + "e72fc65b-12f6-4127-88e1-41ab9a6eaddd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "fc4b4fa1-77cf-4d85-a8db-c940986625c4" + "ee7bdde1-0fa0-4ae8-84a5-ccaa42a51661" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014128Z:fc4b4fa1-77cf-4d85-a8db-c940986625c4" + "WESTUS2:20180518T221009Z:ee7bdde1-0fa0-4ae8-84a5-ccaa42a51661" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MmMxN2FlMC0zOWRhLTRkODUtYWIxYi01Yzc2ZTQ3ZDY4ODg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"62c17ae0-39da-4d85-ab1b-5c76e47d6888\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:09:59.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:41:47 GMT" + "Fri, 18 May 2018 22:10:29 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "555cdf2a-a76d-47ba-a64e-0637e96f4ea9" + "5be3c216-d2e3-419d-9143-6687d81646c5" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "2dbbf26c-3f02-4ad7-90a1-2a9aed382769" + "27c43e7a-5ec9-4bf7-8bf2-12ce7f42c869" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014148Z:2dbbf26c-3f02-4ad7-90a1-2a9aed382769" + "WESTUS2:20180518T221029Z:27c43e7a-5ec9-4bf7-8bf2-12ce7f42c869" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/58357293-c42d-470d-beff-38f46339a38a?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi81ODM1NzI5My1jNDJkLTQ3MGQtYmVmZi0zOGY0NjMzOWEzOGE/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/62c17ae0-39da-4d85-ab1b-5c76e47d6888?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82MmMxN2FlMC0zOWRhLTRkODUtYWIxYi01Yzc2ZTQ3ZDY4ODg/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"58357293-c42d-470d-beff-38f46339a38a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:41:18.183Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"62c17ae0-39da-4d85-ab1b-5c76e47d6888\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:09:59.323Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:08 GMT" + "Fri, 18 May 2018 22:10:49 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "82d30827-e55a-4a92-9272-ff0763d6f36c" + "a1851417-59ee-456b-b2d0-9630d671e5dd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "32494398-c56d-4836-8afc-7ea5046e2dc8" + "785fb732-4dd6-4bf7-b2cd-00bebccf5a2c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014209Z:32494398-c56d-4836-8afc-7ea5046e2dc8" + "WESTUS2:20180518T221049Z:785fb732-4dd6-4bf7-b2cd-00bebccf5a2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ND9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-5485.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485\",\r\n \"name\": \"sqlcrudtest-5485\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-54.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54\",\r\n \"name\": \"sqlcrudtest-54\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:09 GMT" + "Fri, 18 May 2018 22:10:49 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "2aafa819-4574-4184-b71b-4283f479f286" + "f9915b59-acae-435f-b51a-a5ea5533cf04" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "d4ffe3c2-f2bb-4269-a2c1-1160fbe648f9" + "aa216e95-446d-4fa1-a77b-2664253b4187" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014209Z:d4ffe3c2-f2bb-4269-a2c1-1160fbe648f9" + "WESTUS2:20180518T221049Z:aa216e95-446d-4fa1-a77b-2664253b4187" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NTkzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNDAzOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,17 +394,17 @@ "29" ], "x-ms-client-request-id": [ - "5f824d22-34e6-4777-acc5-5942dfed6147" + "527a01b2-3aef-4668-84ee-dcf1a8559f7d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:10:50.187Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "76" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:09 GMT" + "Fri, 18 May 2018 22:10:50 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "30fae471-d899-4997-b8ae-b64c94cc3190" + "bf5d3554-4c3e-407e-a96c-6b4203ac09c5" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "bd2bb883-1acd-43d3-8023-515d625450fe" + "ab703c9e-df4d-4331-801a-74ead07c25ba" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014209Z:bd2bb883-1acd-43d3-8023-515d625450fe" + "WESTUS2:20180518T221050Z:ab703c9e-df4d-4331-801a-74ead07c25ba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NlMjZjN2NmLWJmOGYtNDFjYy1hZjNmLWRmOWNlYjMxNzgwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce26c7cf-bf8f-41cc-af3f-df9ceb317808\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:10:50.187Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:24 GMT" + "Fri, 18 May 2018 22:11:05 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e4ddf072-d898-4119-996e-944d57898439" + "1bfb4970-6e52-45aa-8afc-6f3e6fa7e930" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "49ab5021-143c-440f-9801-d10e4fa60d74" + "855eed38-e247-4276-8c8a-f16a804e6304" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014224Z:49ab5021-143c-440f-9801-d10e4fa60d74" + "WESTUS2:20180518T221105Z:855eed38-e247-4276-8c8a-f16a804e6304" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NlMjZjN2NmLWJmOGYtNDFjYy1hZjNmLWRmOWNlYjMxNzgwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce26c7cf-bf8f-41cc-af3f-df9ceb317808\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:10:50.187Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:39 GMT" + "Fri, 18 May 2018 22:11:20 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a302a278-6a52-468e-b968-fa392fbe34cd" + "3cd959e0-c38a-420d-a589-dd60b7948820" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "791d43c3-7d50-49ad-95bf-469b06e82343" + "61ea2520-6652-4e2f-bcd6-d4ab0b9cc3e1" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014240Z:791d43c3-7d50-49ad-95bf-469b06e82343" + "WESTUS2:20180518T221120Z:61ea2520-6652-4e2f-bcd6-d4ab0b9cc3e1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/d79add62-9f99-4156-9f37-f5b8f8845cba?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2Q3OWFkZDYyLTlmOTktNDE1Ni05ZjM3LWY1YjhmODg0NWNiYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/ce26c7cf-bf8f-41cc-af3f-df9ceb317808?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2NlMjZjN2NmLWJmOGYtNDFjYy1hZjNmLWRmOWNlYjMxNzgwOD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"d79add62-9f99-4156-9f37-f5b8f8845cba\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:42:09.693Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"ce26c7cf-bf8f-41cc-af3f-df9ceb317808\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:10:50.187Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:54 GMT" + "Fri, 18 May 2018 22:11:35 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3e45db60-3ae7-40e3-9853-9159a1ceae7e" + "dc3184f0-205e-4758-ad20-567eb989d65c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "5a788626-a3dc-4367-b8ac-999c5c247f80" + "fa560139-249a-4741-974d-803e92873bf4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014255Z:5a788626-a3dc-4367-b8ac-999c5c247f80" + "WESTUS2:20180518T221135Z:fa560139-249a-4741-974d-803e92873bf4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NTkzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNDAzOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"48d1214c-1fc0-4124-bc8d-9a807a17b589\",\r\n \"creationDate\": \"2018-05-18T01:42:10.133Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:12:46.267Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\",\r\n \"name\": \"sqlcrudtest-5593\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"356e2680-2bed-4a3c-a033-4eea23fe794e\",\r\n \"creationDate\": \"2018-05-18T22:10:50.423Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T22:41:20.777Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039\",\r\n \"name\": \"sqlcrudtest-4039\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:54 GMT" + "Fri, 18 May 2018 22:11:35 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "0d97d751-3df9-4ace-a4dc-fe3a29fe0607" + "908c0112-85e8-41e1-b93e-a418abf5b8ac" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "cb9d8239-d391-4728-8351-d734d7aaba32" + "1bdf1a97-1cd2-44be-b157-6db83cb275ff" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014255Z:cb9d8239-d391-4728-8351-d734d7aaba32" + "WESTUS2:20180518T221135Z:1bdf1a97-1cd2-44be-b157-6db83cb275ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,29 +699,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "235" + "233" ], "x-ms-client-request-id": [ - "d20e94c2-bc8a-4f2a-8b97-937a8138fe84" + "0088fbac-d052-4dc9-a740-fdc53d69a9ff" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -736,13 +736,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:42:54 GMT" + "Fri, 18 May 2018 22:11:35 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -751,19 +751,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "f4d13247-67cb-4d95-9593-d07b28baf249" + "a41174ba-82c1-4ebe-a56d-28e607679ca1" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "18e995a5-08bc-451b-8d5d-dab39cf2afda" + "84c3399b-5c2b-4a16-9fe7-ba9bbe57c198" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014255Z:18e995a5-08bc-451b-8d5d-dab39cf2afda" + "WESTUS2:20180518T221136Z:84c3399b-5c2b-4a16-9fe7-ba9bbe57c198" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -775,17 +775,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -797,7 +797,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:43:10 GMT" + "Fri, 18 May 2018 22:11:51 GMT" ], "Pragma": [ "no-cache" @@ -815,16 +815,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6fe8bdca-3b82-4cbc-96f7-fa7bbc9e5fa9" + "7b3984d7-4091-4684-9a94-6ae3a39aa37e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "408b4e48-1d36-4390-9c66-b8fc8f1be0ed" + "46e6168e-fc48-4301-9e5b-aefd29663ba5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014310Z:408b4e48-1d36-4390-9c66-b8fc8f1be0ed" + "WESTUS2:20180518T221151Z:46e6168e-fc48-4301-9e5b-aefd29663ba5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,17 +836,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -858,7 +858,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:43:25 GMT" + "Fri, 18 May 2018 22:12:06 GMT" ], "Pragma": [ "no-cache" @@ -876,16 +876,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "711ab149-888f-4d33-b1a9-3eb045a542c9" + "4c121c2f-5cd2-4204-ac7b-0c4d4fc99e16" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "86ed2140-0eed-492e-945c-f71b463231cb" + "56433595-ac1c-4d33-8136-4452cfa87145" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014325Z:86ed2140-0eed-492e-945c-f71b463231cb" + "WESTUS2:20180518T221206Z:56433595-ac1c-4d33-8136-4452cfa87145" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -897,17 +897,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -919,7 +919,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:43:40 GMT" + "Fri, 18 May 2018 22:12:21 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cd742402-5a43-4a40-9ff4-0f82cf71736c" + "7b180552-db73-4099-b560-6e8f75fa845c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14989" ], "x-ms-correlation-request-id": [ - "7f6b81fe-5df4-46d9-9609-fe637458d014" + "7a839cfb-ca41-43c5-b8ef-4b205814c4db" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014340Z:7f6b81fe-5df4-46d9-9609-fe637458d014" + "WESTUS2:20180518T221221Z:7a839cfb-ca41-43c5-b8ef-4b205814c4db" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,17 +958,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -980,7 +980,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:43:54 GMT" + "Fri, 18 May 2018 22:12:35 GMT" ], "Pragma": [ "no-cache" @@ -998,16 +998,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "14d728c7-3c4c-4967-b763-227b70e558ef" + "0cd00a1a-dcd7-4e27-9a7e-26a5ce98ea84" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14988" ], "x-ms-correlation-request-id": [ - "b58b2d27-6b01-4077-a6bc-349b145e1d0f" + "7aa8c438-295a-4c17-a6cf-762c0d0d4058" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014355Z:b58b2d27-6b01-4077-a6bc-349b145e1d0f" + "WESTUS2:20180518T221236Z:7aa8c438-295a-4c17-a6cf-762c0d0d4058" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,17 +1019,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1041,7 +1041,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:44:10 GMT" + "Fri, 18 May 2018 22:12:51 GMT" ], "Pragma": [ "no-cache" @@ -1059,16 +1059,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7e20c4ba-9a35-41c3-966c-85e1360c9faf" + "f9f9d6b9-3988-4667-81ac-b67c8bd6d25b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14987" ], "x-ms-correlation-request-id": [ - "8c1674dc-1bdf-4947-ad94-3ffbbb83fa58" + "1b02c772-78b3-44a3-8e87-0e153623167f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014410Z:8c1674dc-1bdf-4947-ad94-3ffbbb83fa58" + "WESTUS2:20180518T221251Z:1b02c772-78b3-44a3-8e87-0e153623167f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,17 +1080,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1102,7 +1102,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:44:25 GMT" + "Fri, 18 May 2018 22:13:06 GMT" ], "Pragma": [ "no-cache" @@ -1120,16 +1120,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "33c2d4e9-f7bb-43bb-a84f-eb3900d06b42" + "4f63ca88-82b0-4a9c-9eca-08bcf83eb4ba" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14986" ], "x-ms-correlation-request-id": [ - "1818f11e-fc34-4493-b19e-471f004f626d" + "79de1446-594a-48e7-9188-17ed184b3d0e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014425Z:1818f11e-fc34-4493-b19e-471f004f626d" + "WESTUS2:20180518T221306Z:79de1446-594a-48e7-9188-17ed184b3d0e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1141,17 +1141,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/94ff4c19-7447-47c4-bc2a-fadf11841e41?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzk0ZmY0YzE5LTc0NDctNDdjNC1iYzJhLWZhZGYxMTg0MWU0MT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"94ff4c19-7447-47c4-bc2a-fadf11841e41\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:11:36.423Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1163,7 +1163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:44:40 GMT" + "Fri, 18 May 2018 22:13:21 GMT" ], "Pragma": [ "no-cache" @@ -1181,16 +1181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5e13934e-dd40-4f3d-938d-d0ab3ab1f035" + "08226d4f-621f-4a15-bd29-dcede5f68211" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14985" ], "x-ms-correlation-request-id": [ - "18a78067-058b-42fc-95fb-8bdefe770cd3" + "0705dc73-74e3-4547-beb2-d2802a817cff" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014440Z:18a78067-058b-42fc-95fb-8bdefe770cd3" + "WESTUS2:20180518T221322Z:0705dc73-74e3-4547-beb2-d2802a817cff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1202,17 +1202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/databases/sqlcrudtest-4039\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1224,1227 +1224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:44:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "e8061e8a-16dd-4986-8950-2f47f65bd5d8" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" - ], - "x-ms-correlation-request-id": [ - "7dfd2dcf-bab9-4610-99a1-a7ec6b7a78bc" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014456Z:7dfd2dcf-bab9-4610-99a1-a7ec6b7a78bc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:45:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "970ab5b6-a87b-41db-ace0-d45b980d6174" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" - ], - "x-ms-correlation-request-id": [ - "cf8fb6ed-ee5c-4a0b-a791-a4ddbb153cfa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014511Z:cf8fb6ed-ee5c-4a0b-a791-a4ddbb153cfa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:45:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "13e7ec33-9de1-4338-a407-5c8200d33dd2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" - ], - "x-ms-correlation-request-id": [ - "d06785d8-a587-4d8d-8418-44a59fc3a989" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014526Z:d06785d8-a587-4d8d-8418-44a59fc3a989" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:45:41 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "29769f92-49e0-4d52-8828-695e5cea2c29" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" - ], - "x-ms-correlation-request-id": [ - "c1079b88-46f1-46c7-a20a-ec1f3d15b5c5" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014541Z:c1079b88-46f1-46c7-a20a-ec1f3d15b5c5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:45:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "8aed65ae-0ecc-4103-a0ef-bc09b7eafa2c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" - ], - "x-ms-correlation-request-id": [ - "017db22c-adec-4627-bad9-3352a8d04652" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014556Z:017db22c-adec-4627-bad9-3352a8d04652" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:46:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1fb1d44e-94e2-4f6d-8d1d-e2259ba867f3" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" - ], - "x-ms-correlation-request-id": [ - "e0132546-fa11-44ff-9268-47caa215a5fa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014611Z:e0132546-fa11-44ff-9268-47caa215a5fa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:46:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "94dbcf83-a8b7-4cb6-baf4-54416eaf07b7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" - ], - "x-ms-correlation-request-id": [ - "afd47af0-30cb-4ede-ad29-e1ac2b714828" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014626Z:afd47af0-30cb-4ede-ad29-e1ac2b714828" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:46:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1334ec85-5d38-4983-914a-5f2546596491" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" - ], - "x-ms-correlation-request-id": [ - "1016909b-6abe-467e-a012-d99fc888f64c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014641Z:1016909b-6abe-467e-a012-d99fc888f64c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:46:56 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1a22d342-690b-4b4a-918a-95290b7f5bdf" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" - ], - "x-ms-correlation-request-id": [ - "b49d1e7a-0592-4a33-9cce-f03b8f2e50cc" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014656Z:b49d1e7a-0592-4a33-9cce-f03b8f2e50cc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:47:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "12571a82-8ffe-4bda-963e-3623e7d593b4" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" - ], - "x-ms-correlation-request-id": [ - "f7cace68-9200-4226-b574-1eb376221abc" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014711Z:f7cace68-9200-4226-b574-1eb376221abc" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:47:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "65c6a90a-ecda-4dda-8f53-1566581115cc" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" - ], - "x-ms-correlation-request-id": [ - "c93e620b-143c-4699-ad92-6b6a9fe31bb8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014726Z:c93e620b-143c-4699-ad92-6b6a9fe31bb8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:47:41 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "73afe107-2fb4-40be-922a-ef46fce089b7" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" - ], - "x-ms-correlation-request-id": [ - "0c9ee65c-56c0-4d30-b7ef-8eb855947def" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014741Z:0c9ee65c-56c0-4d30-b7ef-8eb855947def" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:47:55 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "d4cdaaf7-79ee-446d-9fe1-c2af703bf41f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" - ], - "x-ms-correlation-request-id": [ - "7cce9455-74c5-410c-9d43-a03f5aedf2b5" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014756Z:7cce9455-74c5-410c-9d43-a03f5aedf2b5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:48:10 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "e13d19c7-1ae9-4ce1-ade0-cc934e543fc3" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14971" - ], - "x-ms-correlation-request-id": [ - "b69f297e-6c1d-4412-993a-fbe9145627cb" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014811Z:b69f297e-6c1d-4412-993a-fbe9145627cb" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:48:26 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "801c577b-27a5-4a55-948d-904f9341b997" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14970" - ], - "x-ms-correlation-request-id": [ - "3d815a88-142d-4803-9393-69d0a4de8ef0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014826Z:3d815a88-142d-4803-9393-69d0a4de8ef0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:48:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "e537c726-e559-427b-ab19-6ac954bcbab6" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" - ], - "x-ms-correlation-request-id": [ - "aec3dab6-1d44-4ab3-8fe7-beec0cafc89a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014841Z:aec3dab6-1d44-4ab3-8fe7-beec0cafc89a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:48:56 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "caf342e9-1508-48f0-90aa-efa3cde031a5" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14968" - ], - "x-ms-correlation-request-id": [ - "4fa21549-b532-4123-b3d5-1bf15b38e559" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014856Z:4fa21549-b532-4123-b3d5-1bf15b38e559" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:49:11 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "bfc4ddf1-f559-4369-919c-4490087effba" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" - ], - "x-ms-correlation-request-id": [ - "4ba1862b-b5ff-40d6-9319-7265ccc427af" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014911Z:4ba1862b-b5ff-40d6-9319-7265ccc427af" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:49:25 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "77507636-4a74-41be-b88b-04e1d20a7f7f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" - ], - "x-ms-correlation-request-id": [ - "e3c8158b-574f-4857-b159-ef6ddb52bf09" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014926Z:e3c8158b-574f-4857-b159-ef6ddb52bf09" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/14c6f0ce-99d9-44da-ae59-3d9a83a7e74a?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzE0YzZmMGNlLTk5ZDktNDRkYS1hZTU5LTNkOWE4M2E3ZTc0YT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"14c6f0ce-99d9-44da-ae59-3d9a83a7e74a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:42:55.523Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:49:41 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "44c3a1ad-b208-4269-b817-d45c5e546295" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" - ], - "x-ms-correlation-request-id": [ - "9378e302-6828-4ddf-abda-8d8c4316bbd1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T014941Z:9378e302-6828-4ddf-abda-8d8c4316bbd1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/databases/sqlcrudtest-5593\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:49:41 GMT" + "Fri, 18 May 2018 22:13:21 GMT" ], "Pragma": [ "no-cache" @@ -2459,16 +1239,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8ad531c1-4d06-4ab7-88b2-d806da60bfca" + "a192109d-8224-4cce-a654-82ac8fcd95d1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14964" + "14984" ], "x-ms-correlation-request-id": [ - "51133f44-2b90-40a4-aea3-83c9cf625845" + "c631a333-cc7d-4572-a397-1d9604cb1fcd" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014941Z:51133f44-2b90-40a4-aea3-83c9cf625845" + "WESTUS2:20180518T221322Z:c631a333-cc7d-4572-a397-1d9604cb1fcd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2480,8 +1260,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -2492,20 +1272,20 @@ "259" ], "x-ms-client-request-id": [ - "76607653-2da5-49fa-a72a-28f26008f72b" + "7972db43-7d66-4ca0-a5b8-3ee47603b01b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "421" + "419" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2517,7 +1297,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:22 GMT" ], "Pragma": [ "no-cache" @@ -2526,16 +1306,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8fc6fa84-92da-4e15-a931-fa9e9020d143" + "bad2b2f2-35f3-4327-a73b-e1abe4bbc2eb" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "65e19b60-3019-4092-88fd-ed1231571a6e" + "595f0a69-0e91-4753-8b2e-ea6c0b13db8c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014942Z:65e19b60-3019-4092-88fd-ed1231571a6e" + "WESTUS2:20180518T221323Z:595f0a69-0e91-4753-8b2e-ea6c0b13db8c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2547,8 +1327,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -2559,17 +1339,17 @@ "140" ], "x-ms-client-request-id": [ - "1d442ff8-9d83-4dbb-a6c7-12d396b31d1d" + "88a942e8-a5a0-4031-8ed2-0cc2d68993ba" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2581,7 +1361,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:22 GMT" ], "Pragma": [ "no-cache" @@ -2596,16 +1376,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b4eb085d-8b57-4dcf-a26a-29a66efc65c1" + "ed1247f0-805b-4b94-a308-1f19dadc1bf7" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "3b52a50a-690f-41a9-8102-b8311250257c" + "1fa660b7-2c39-4363-9580-ca1b3afad495" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014942Z:3b52a50a-690f-41a9-8102-b8311250257c" + "WESTUS2:20180518T221323Z:1fa660b7-2c39-4363-9580-ca1b3afad495" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2617,23 +1397,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQvam9icz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e68bea43-223e-498a-b03d-76359c653992" + "97d9fd19-640f-4af1-b8b5-7aa24142f875" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2645,7 +1425,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:22 GMT" ], "Pragma": [ "no-cache" @@ -2660,16 +1440,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a4757fdd-9efd-4d47-8ea0-6174da6fbb0e" + "f4170242-5d87-4934-b4f0-2c0ddf63490a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14963" + "14983" ], "x-ms-correlation-request-id": [ - "47af963c-3254-4e40-bce6-4aced83a680f" + "61942f0b-78a9-411e-b5fc-eecfc9b95eb6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014943Z:47af963c-3254-4e40-bce6-4aced83a680f" + "WESTUS2:20180518T221323Z:61942f0b-78a9-411e-b5fc-eecfc9b95eb6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2681,20 +1461,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1353/providers/Microsoft.Sql/servers/sqlcrudtest-5485/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEzNTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NDg1L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8545/providers/Microsoft.Sql/servers/sqlcrudtest-54/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1NDUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9207cb5a-30d2-48cc-a3c0-27888052dee8" + "e1e71549-4957-4ec5-8aac-d2049892b9fe" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -2709,7 +1489,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:22 GMT" ], "Pragma": [ "no-cache" @@ -2718,16 +1498,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ade4f528-caa1-47dc-9e96-86830351db94" + "e4daa54c-ad18-4d9b-bd14-3c90c3c2e9a3" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "1e46bd41-b8e1-4dd0-8cc7-7d6f686db193" + "3840674d-0165-498a-952c-9c894a97c937" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014943Z:1e46bd41-b8e1-4dd0-8cc7-7d6f686db193" + "WESTUS2:20180518T221323Z:3840674d-0165-498a-952c-9c894a97c937" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2739,13 +1519,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8545?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1NDU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4ecec2cd-ac26-4bbc-9baa-00e3b8c6dca1" + "a44369ea-e942-473a-8dbc-ee37f6774dab" ], "accept-language": [ "en-US" @@ -2767,13 +1547,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEzNTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg1NDUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2782,13 +1562,13 @@ "14999" ], "x-ms-request-id": [ - "fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + "6295f771-a55d-4556-bf7e-aa4f3653f65c" ], "x-ms-correlation-request-id": [ - "fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + "6295f771-a55d-4556-bf7e-aa4f3653f65c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014943Z:fa30f04f-1620-4bac-95fd-1c786a2f8c4c" + "WESTUS2:20180518T221323Z:6295f771-a55d-4556-bf7e-aa4f3653f65c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2800,13 +1580,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1353?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEzNTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8545?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1NDU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cf85a74a-2d91-40c6-b6c5-df17b6eb4198" + "f0aa2c01-e0ce-44b6-9787-6f711d340f8f" ], "accept-language": [ "en-US" @@ -2828,13 +1608,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:42 GMT" + "Fri, 18 May 2018 22:13:23 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEzNTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg1NDUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2843,13 +1623,13 @@ "14998" ], "x-ms-request-id": [ - "5dad3535-e16b-4a95-8d01-3890f4eec5b1" + "9aad9f7c-540f-4a4b-bdce-7c5ab817b0e2" ], "x-ms-correlation-request-id": [ - "5dad3535-e16b-4a95-8d01-3890f4eec5b1" + "9aad9f7c-540f-4a4b-bdce-7c5ab817b0e2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014943Z:5dad3535-e16b-4a95-8d01-3890f4eec5b1" + "WESTUS2:20180518T221324Z:9aad9f7c-540f-4a4b-bdce-7c5ab817b0e2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2863,13 +1643,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-1353" + "sqlcrudtest-8545" ], "CreateServer": [ - "sqlcrudtest-5485" + "sqlcrudtest-54" ], "TestCreateUpdateDropJob": [ - "sqlcrudtest-5593" + "sqlcrudtest-4039" ] }, "Variables": { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json index abbf81537932..e4c04bfe5be4 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobCredential.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8527?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1Mjc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3019\": \"2018-05-18 01:52:48Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8527\": \"2018-05-18 22:16:58Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "621b70d9-352b-4047-a8d8-d0506757fa5f" + "b59d4672-67c7-4268-bcec-5809b13395ce" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019\",\r\n \"name\": \"sqlcrudtest-3019\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-3019\": \"2018-05-18 01:52:48Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527\",\r\n \"name\": \"sqlcrudtest-8527\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8527\": \"2018-05-18 22:16:58Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:48 GMT" + "Fri, 18 May 2018 22:16:59 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "85df2e85-0599-467d-b74e-06e9e87b4aa4" + "05c93a75-e469-4e48-b536-da7ef7122814" ], "x-ms-correlation-request-id": [ - "85df2e85-0599-467d-b74e-06e9e87b4aa4" + "05c93a75-e469-4e48-b536-da7ef7122814" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015249Z:85df2e85-0599-467d-b74e-06e9e87b4aa4" + "WESTUS2:20180518T221659Z:05c93a75-e469-4e48-b536-da7ef7122814" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", "RequestHeaders": { @@ -77,20 +77,20 @@ "183" ], "x-ms-client-request-id": [ - "3b46b065-e648-4537-8b54-a5a8b9404584" + "6de6917b-4c66-4dba-8352-9f9c6e53cfe7" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:17:04.24Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "72" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:51 GMT" + "Fri, 18 May 2018 22:17:03 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverOperationResults/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverOperationResults/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "fbce9bfa-e7fc-42b8-aea2-8b0379776ceb" + "e4f8438e-b2e7-4acb-b934-79d385960f3f" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "8bc0eb2d-7713-4c8d-a3f8-3dc69c8f3529" + "edd2fb88-895e-498b-81e3-9f26363a24e8" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015251Z:8bc0eb2d-7713-4c8d-a3f8-3dc69c8f3529" + "WESTUS2:20180518T221704Z:edd2fb88-895e-498b-81e3-9f26363a24e8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNGY4NDM4ZS1iMmU3LTRhY2ItYjkzNC03OWQzODU5NjBmM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e4f8438e-b2e7-4acb-b934-79d385960f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:17:04.24Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:53:01 GMT" + "Fri, 18 May 2018 22:17:13 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6de30668-f08c-4302-9f27-a67c49a7363b" + "8ff75072-5077-40ca-9c5a-b15bc7626912" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "58df45ba-bbf8-437c-a885-4981eff4d74c" + "eaa6178a-466c-4672-89d0-c35b5ff1ffda" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015301Z:58df45ba-bbf8-437c-a885-4981eff4d74c" + "WESTUS2:20180518T221714Z:eaa6178a-466c-4672-89d0-c35b5ff1ffda" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNGY4NDM4ZS1iMmU3LTRhY2ItYjkzNC03OWQzODU5NjBmM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e4f8438e-b2e7-4acb-b934-79d385960f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:17:04.24Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:53:21 GMT" + "Fri, 18 May 2018 22:17:34 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bdbb017f-9b98-4a07-ac10-c419e81af512" + "7178f335-6b52-4a8d-b30e-64a47c2d654f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "8d2506c1-5f24-4217-bbf0-faebb456073d" + "ce0980e6-6940-43cf-b2fd-2349b8bfe9f2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015321Z:8d2506c1-5f24-4217-bbf0-faebb456073d" + "WESTUS2:20180518T221734Z:ce0980e6-6940-43cf-b2fd-2349b8bfe9f2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e4f8438e-b2e7-4acb-b934-79d385960f3f?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNGY4NDM4ZS1iMmU3LTRhY2ItYjkzNC03OWQzODU5NjBmM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"e4f8438e-b2e7-4acb-b934-79d385960f3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:17:04.24Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:53:41 GMT" + "Fri, 18 May 2018 22:17:53 GMT" ], "Pragma": [ "no-cache" @@ -294,7 +294,7 @@ "chunked" ], "Retry-After": [ - "20" + "15" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5ba9dda3-35a9-4179-b22d-13d1938a8f69" + "b9f5695d-19f1-431a-be82-0015cbb50b2a" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "5a0b5ae7-46b8-436f-9b9c-1ab0b86add09" + "b4de42d0-a59c-4125-bb7a-ff0b6c50aa91" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015341Z:5a0b5ae7-46b8-436f-9b9c-1ab0b86add09" + "WESTUS2:20180518T221754Z:b4de42d0-a59c-4125-bb7a-ff0b6c50aa91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/fbce9bfa-e7fc-42b8-aea2-8b0379776ceb?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9mYmNlOWJmYS1lN2ZjLTQyYjgtYWVhMi04YjAzNzk3NzZjZWI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"fbce9bfa-e7fc-42b8-aea2-8b0379776ceb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:52:51.8Z\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-5063.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063\",\r\n \"name\": \"sqlcrudtest-5063\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:01 GMT" + "Fri, 18 May 2018 22:17:53 GMT" ], "Pragma": [ "no-cache" @@ -354,9 +354,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -364,74 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3e3b81c2-42d3-48bb-a337-82c67ecf259c" + "ab288386-cab7-4f9c-9510-29bd64afb4a3" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "ebc8d70a-d2a9-4f7a-b5d0-10ffad331f1c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T015401Z:ebc8d70a-d2a9-4f7a-b5d0-10ffad331f1c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-3052.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052\",\r\n \"name\": \"sqlcrudtest-3052\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:54:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "cd86cdc6-a466-449c-8312-e202e41b484c" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" - ], - "x-ms-correlation-request-id": [ - "c80105e8-124b-4632-81a9-db43bf558c9d" + "509dfb62-6ab9-4868-b509-37c3529c40f3" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015402Z:c80105e8-124b-4632-81a9-db43bf558c9d" + "WESTUS2:20180518T221754Z:509dfb62-6ab9-4868-b509-37c3529c40f3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -443,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTkyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNDA/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -455,20 +394,20 @@ "29" ], "x-ms-client-request-id": [ - "f7aa2bc7-ec5f-4740-ad56-b8a08da57a3a" + "076d4c84-cdd9-4d5c-8f75-a7a351d7802d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:17:55.71Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -480,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:02 GMT" + "Fri, 18 May 2018 22:17:54 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -495,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "85ba04dc-77b8-4199-8074-1cb930cafb40" + "eb39a50f-6d1a-44e2-ae6f-ff27268dca50" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "de60899c-b274-47f1-903c-a6201c468acb" + "bc87622d-4f6b-46a9-bcb8-52745cc7c112" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015402Z:de60899c-b274-47f1-903c-a6201c468acb" + "WESTUS2:20180518T221755Z:bc87622d-4f6b-46a9-bcb8-52745cc7c112" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2YyZjNkNWU0LTY1NjItNDEzZi1iMjM1LWM1YTQ3OGViZTEzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f2f3d5e4-6562-413f-b235-c5a478ebe13a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:17:55.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:17 GMT" + "Fri, 18 May 2018 22:18:10 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e283b20a-7bb2-4f93-a4c7-fe216834bafa" + "cb8c9e5f-08a0-4b0e-8a27-4745430b8078" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14995" ], "x-ms-correlation-request-id": [ - "6b908da1-ec33-4ba1-a6ad-b60b39b7b555" + "c8857f07-35c1-4d8f-bcbc-5f98774f66c0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015417Z:6b908da1-ec33-4ba1-a6ad-b60b39b7b555" + "WESTUS2:20180518T221810Z:c8857f07-35c1-4d8f-bcbc-5f98774f66c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2YyZjNkNWU0LTY1NjItNDEzZi1iMjM1LWM1YTQ3OGViZTEzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f2f3d5e4-6562-413f-b235-c5a478ebe13a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:17:55.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:31 GMT" + "Fri, 18 May 2018 22:18:25 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ef0f1fc3-fbad-4609-9bec-4b6b1c984a8a" + "3f14d09e-9df3-4965-b8bd-fbf162ce5540" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14994" ], "x-ms-correlation-request-id": [ - "25acdc81-2078-4da3-bf5a-025861fb8140" + "097c7f1a-2e81-4cd6-b5f8-788098d18b14" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015432Z:25acdc81-2078-4da3-bf5a-025861fb8140" + "WESTUS2:20180518T221825Z:097c7f1a-2e81-4cd6-b5f8-788098d18b14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/52ee1b46-58fc-4890-917b-32b4217ddfcb?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzUyZWUxYjQ2LTU4ZmMtNDg5MC05MTdiLTMyYjQyMTdkZGZjYj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/f2f3d5e4-6562-413f-b235-c5a478ebe13a?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2YyZjNkNWU0LTY1NjItNDEzZi1iMjM1LWM1YTQ3OGViZTEzYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"52ee1b46-58fc-4890-917b-32b4217ddfcb\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:54:02.533Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"f2f3d5e4-6562-413f-b235-c5a478ebe13a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:17:55.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:47 GMT" + "Fri, 18 May 2018 22:18:40 GMT" ], "Pragma": [ "no-cache" @@ -681,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "62af3461-5a38-4cd5-b7c0-1c720d83c90a" + "3526c40e-63d4-4c6d-8742-59bcbc58f6ff" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14993" ], "x-ms-correlation-request-id": [ - "ec0e0dc4-0c19-468c-b620-41e3607ad1c0" + "af51af27-52ff-474b-8c01-0860ba1e125b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015447Z:ec0e0dc4-0c19-468c-b620-41e3607ad1c0" + "WESTUS2:20180518T221840Z:af51af27-52ff-474b-8c01-0860ba1e125b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -702,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTkyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNDA/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"fd8c640c-e139-4de3-957e-4408cd66aa3f\",\r\n \"creationDate\": \"2018-05-18T01:54:02.75Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:24:35.527Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\",\r\n \"name\": \"sqlcrudtest-5992\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"42a0f8db-6fd7-4676-b565-fad2cc2e924e\",\r\n \"creationDate\": \"2018-05-18T22:17:56.15Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T22:48:36.587Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140\",\r\n \"name\": \"sqlcrudtest-140\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -724,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:47 GMT" + "Fri, 18 May 2018 22:18:40 GMT" ], "Pragma": [ "no-cache" @@ -739,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "11c1d299-8d0a-462f-a7d7-79937d2e6cbd" + "af3a7375-0eeb-4232-b3ed-27eb0f564e3c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" + "14992" ], "x-ms-correlation-request-id": [ - "9c0a11a4-84ec-425a-9556-874fb6d1f3d4" + "6f0c17ea-ea09-498e-82ce-7359367e4d2c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015447Z:9c0a11a4-84ec-425a-9556-874fb6d1f3d4" + "WESTUS2:20180518T221841Z:6f0c17ea-ea09-498e-82ce-7359367e4d2c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -760,29 +699,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "235" + "234" ], "x-ms-client-request-id": [ - "8cc6f8fe-1a0a-42a7-be7d-438d2cf2244a" + "03383fa9-fcf9-4489-b696-aa67c15d790d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -797,13 +736,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:54:48 GMT" + "Fri, 18 May 2018 22:18:40 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -812,19 +751,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "ec4d3eb3-ccfd-4421-b33e-637cc102c557" + "7ab511bb-c322-48a3-bc07-d3890dbee901" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "0370f574-dc64-401e-b2df-e8a9206c5de3" + "92303d3d-9092-4cd6-9d66-af7c3b8dc75d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015448Z:0370f574-dc64-401e-b2df-e8a9206c5de3" + "WESTUS2:20180518T221841Z:92303d3d-9092-4cd6-9d66-af7c3b8dc75d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,78 +775,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 01:55:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "7e3ee8e1-873b-42a1-85e8-c6c9bdddb348" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-correlation-request-id": [ - "4388afc1-3066-455d-965f-168451c91936" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T015503Z:4388afc1-3066-455d-965f-168451c91936" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JlYmJhZThhLTU1NmEtNDlmZi1hNWI3LTUxYjliZTFmMTVlMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bebbae8a-556a-49ff-a5b7-51b9be1f15e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -919,7 +797,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:55:18 GMT" + "Fri, 18 May 2018 22:18:56 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +815,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cfd11f7d-19b6-43a3-9c3c-f2c4427f4fc9" + "caf1b90a-8371-4221-8323-64d32262a93e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14991" ], "x-ms-correlation-request-id": [ - "168137b4-1db0-4407-aa5b-ee196d73660f" + "375c77a0-0b23-45af-b7d4-ceb3c149d078" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015518Z:168137b4-1db0-4407-aa5b-ee196d73660f" + "WESTUS2:20180518T221856Z:375c77a0-0b23-45af-b7d4-ceb3c149d078" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,17 +836,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JlYmJhZThhLTU1NmEtNDlmZi1hNWI3LTUxYjliZTFmMTVlMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bebbae8a-556a-49ff-a5b7-51b9be1f15e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -980,7 +858,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:55:33 GMT" + "Fri, 18 May 2018 22:19:11 GMT" ], "Pragma": [ "no-cache" @@ -998,16 +876,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bc9066f0-d507-437f-ad74-679b90481264" + "93632b07-399b-435c-8198-2c56e13ce2b9" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14990" ], "x-ms-correlation-request-id": [ - "951c4925-c232-4a4c-a60b-d3fbe53d823a" + "27d1ed51-a297-466c-820e-b2b51fde1897" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015533Z:951c4925-c232-4a4c-a60b-d3fbe53d823a" + "WESTUS2:20180518T221911Z:27d1ed51-a297-466c-820e-b2b51fde1897" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,17 +897,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JlYmJhZThhLTU1NmEtNDlmZi1hNWI3LTUxYjliZTFmMTVlMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bebbae8a-556a-49ff-a5b7-51b9be1f15e3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1041,7 +919,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:55:48 GMT" + "Fri, 18 May 2018 22:19:26 GMT" ], "Pragma": [ "no-cache" @@ -1059,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "55168349-e7ba-4e98-bdda-f573be8cdd1e" + "452c3894-0192-40bd-9828-9be9d4d92053" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "14989" ], "x-ms-correlation-request-id": [ - "33635e6b-9322-458b-b91b-23ffe6e1df81" + "6273fa27-d804-4f39-9045-da7e67b93008" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015548Z:33635e6b-9322-458b-b91b-23ffe6e1df81" + "WESTUS2:20180518T221926Z:6273fa27-d804-4f39-9045-da7e67b93008" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,17 +958,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/ce6aa515-1b66-48e3-95a9-904c16fa9007?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NlNmFhNTE1LTFiNjYtNDhlMy05NWE5LTkwNGMxNmZhOTAwNz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bebbae8a-556a-49ff-a5b7-51b9be1f15e3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JlYmJhZThhLTU1NmEtNDlmZi1hNWI3LTUxYjliZTFmMTVlMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"ce6aa515-1b66-48e3-95a9-904c16fa9007\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:54:48.023Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bebbae8a-556a-49ff-a5b7-51b9be1f15e3\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:18:41.403Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1102,7 +980,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:03 GMT" + "Fri, 18 May 2018 22:19:41 GMT" ], "Pragma": [ "no-cache" @@ -1120,16 +998,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cea09f57-1e4f-48d7-adea-30b0dd79eaf7" + "06a606f1-e734-44b8-914c-1e8d83a4369c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14988" ], "x-ms-correlation-request-id": [ - "653f085c-7f16-4d1c-9db7-77ac86b9e587" + "83f84d7f-7616-43b9-adec-b9edb22b3003" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015603Z:653f085c-7f16-4d1c-9db7-77ac86b9e587" + "WESTUS2:20180518T221941Z:83f84d7f-7616-43b9-adec-b9edb22b3003" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1141,17 +1019,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/databases/sqlcrudtest-5992\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/databases/sqlcrudtest-140\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1163,7 +1041,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:03 GMT" + "Fri, 18 May 2018 22:19:41 GMT" ], "Pragma": [ "no-cache" @@ -1178,16 +1056,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ca1066d4-0ec7-43fa-b6f8-d860d61496db" + "bf4de78f-3150-45e0-8b0f-3fab27d6cd7a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14987" ], "x-ms-correlation-request-id": [ - "a8da8a69-db03-4022-a7cd-d00a2c805a14" + "e42d7cfb-5245-4df2-aa08-a80e162826d4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015603Z:a8da8a69-db03-4022-a7cd-d00a2c805a14" + "WESTUS2:20180518T221941Z:e42d7cfb-5245-4df2-aa08-a80e162826d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1199,32 +1077,32 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"cloudsa\",\r\n \"password\": \"Yukon900!\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"a\",\r\n \"password\": \"b!\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "85" + "72" ], "x-ms-client-request-id": [ - "ce26c2ed-39f1-47b8-b56c-705e27ed2711" + "097fba34-7b74-4402-9380-2ca0917629c0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"cloudsa\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"a\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "289" + "283" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1236,7 +1114,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:04 GMT" + "Fri, 18 May 2018 22:19:42 GMT" ], "Pragma": [ "no-cache" @@ -1245,16 +1123,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "79007019-754d-4bb0-85f0-e4e735a841b1" + "35442c74-0fcd-4fb6-9661-8fbc80b8e56f" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "b07311a5-bfb3-4339-a072-e1c3f8ef6aeb" + "090961c8-6080-4a72-b279-12c8899a5814" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015604Z:b07311a5-bfb3-4339-a072-e1c3f8ef6aeb" + "WESTUS2:20180518T221942Z:090961c8-6080-4a72-b279-12c8899a5814" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1266,8 +1144,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", "RequestHeaders": { @@ -1278,17 +1156,17 @@ "88" ], "x-ms-client-request-id": [ - "2806d149-727d-417a-8b80-40d7fbe4bf68" + "331a1146-d32f-4bb6-a3dc-e481bee06e5c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1300,7 +1178,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:04 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" @@ -1315,16 +1193,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e0c8255f-4a9e-4251-9a7d-314640703f76" + "d32c3d30-8087-4df8-afff-45e85a82a3e3" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "eb509704-9140-4b6a-b875-e9c0fffe0ff8" + "38769f62-7a06-411c-a1ab-20fca16c579d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015604Z:eb509704-9140-4b6a-b875-e9c0fffe0ff8" + "WESTUS2:20180518T221943Z:38769f62-7a06-411c-a1ab-20fca16c579d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1336,23 +1214,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "229b53c5-d62e-41d1-907d-22f8bf461e0a" + "3791d56b-3fe7-44a6-9ab8-aab73904075c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1364,7 +1242,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:04 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" @@ -1379,16 +1257,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bfc87e0a-f1f5-4073-a24e-79f1825de53c" + "86755cae-6e99-42fe-a77e-988a0f2ac729" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "14986" ], "x-ms-correlation-request-id": [ - "863d1a96-099c-4550-b0ad-ac971ed85159" + "055a4fbe-2164-46f7-adcb-5ca7ee7712ce" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015605Z:863d1a96-099c-4550-b0ad-ac971ed85159" + "WESTUS2:20180518T221943Z:055a4fbe-2164-46f7-adcb-5ca7ee7712ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1400,20 +1278,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-3019/providers/Microsoft.Sql/servers/sqlcrudtest-3052/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwMTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zMDUyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8527/providers/Microsoft.Sql/servers/sqlcrudtest-5063/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg1MjcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDYzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "be0f55b2-dcfa-4d64-84ae-24c62ad15656" + "e797c625-9a66-4b09-bd9a-62975021d6d1" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -1428,7 +1306,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:04 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" @@ -1437,16 +1315,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "13fd1eff-e139-43a9-97fc-d139455062b3" + "a747ebc1-a25b-4cda-b29b-97d0ec4cb56c" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "edc5833f-58ae-409c-ad5e-78b56c2b8175" + "f6e6969f-b6f7-4676-a948-d6db0285c50b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015605Z:edc5833f-58ae-409c-ad5e-78b56c2b8175" + "WESTUS2:20180518T221943Z:f6e6969f-b6f7-4676-a948-d6db0285c50b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1458,13 +1336,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8527?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1Mjc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "093e03bf-82b7-4329-96a2-e016aa0ffada" + "09a8b07f-dbaf-4199-a938-bc3ae52a4794" ], "accept-language": [ "en-US" @@ -1486,28 +1364,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:05 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwMTktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg1MjctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-request-id": [ - "4a4700a4-1a26-47a6-ab65-ad129a8ce527" + "6c8a2a9b-3d01-44de-93f8-458820cde4db" ], "x-ms-correlation-request-id": [ - "4a4700a4-1a26-47a6-ab65-ad129a8ce527" + "6c8a2a9b-3d01-44de-93f8-458820cde4db" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015606Z:4a4700a4-1a26-47a6-ab65-ad129a8ce527" + "WESTUS2:20180518T221943Z:6c8a2a9b-3d01-44de-93f8-458820cde4db" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1519,13 +1397,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-3019?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwMTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8527?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg1Mjc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "22d525f7-d50d-422c-a151-b746c38b8baa" + "bd482cb7-7fc7-496a-870a-e8c4dbde4213" ], "accept-language": [ "en-US" @@ -1547,28 +1425,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:56:05 GMT" + "Fri, 18 May 2018 22:19:43 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwMTktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg1MjctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14997" ], "x-ms-request-id": [ - "868e8101-8302-4c94-ae25-acb96c26a65f" + "d40a981d-1f72-4bde-8142-2b837f1c66e4" ], "x-ms-correlation-request-id": [ - "868e8101-8302-4c94-ae25-acb96c26a65f" + "d40a981d-1f72-4bde-8142-2b837f1c66e4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015606Z:868e8101-8302-4c94-ae25-acb96c26a65f" + "WESTUS2:20180518T221943Z:d40a981d-1f72-4bde-8142-2b837f1c66e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1582,13 +1460,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-3019" + "sqlcrudtest-8527" ], "CreateServer": [ - "sqlcrudtest-3052" + "sqlcrudtest-5063" ], "TestCreateUpdateDropJobCredential": [ - "sqlcrudtest-5992" + "sqlcrudtest-140" ] }, "Variables": { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json index 4d81e551efa6..cb108b449e7c 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropJobStep.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1232?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8280\": \"2018-05-18 01:49:47Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1232\": \"2018-05-18 22:13:26Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "5f70a9d2-1bc3-482c-b970-704e8e730577" + "7eab8b3d-2095-4eca-a5d8-72bed1b43df7" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280\",\r\n \"name\": \"sqlcrudtest-8280\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8280\": \"2018-05-18 01:49:47Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232\",\r\n \"name\": \"sqlcrudtest-1232\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-1232\": \"2018-05-18 22:13:26Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:48 GMT" + "Fri, 18 May 2018 22:13:27 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "1014406f-9a29-421a-bcd8-4788a969e242" + "98f76e65-89f4-40ce-9c20-5768c0252af0" ], "x-ms-correlation-request-id": [ - "1014406f-9a29-421a-bcd8-4788a969e242" + "98f76e65-89f4-40ce-9c20-5768c0252af0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014948Z:1014406f-9a29-421a-bcd8-4788a969e242" + "WESTUS2:20180518T221327Z:98f76e65-89f4-40ce-9c20-5768c0252af0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", "RequestHeaders": { @@ -77,20 +77,20 @@ "183" ], "x-ms-client-request-id": [ - "2eb29fcd-9f9b-46a4-8dd5-a5d999b475ea" + "0b7bc55a-6c90-4a8c-bbb4-21cfe581d1a5" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:13:29.94Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "74" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:49 GMT" + "Fri, 18 May 2018 22:13:29 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverOperationResults/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverOperationResults/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "6e785afc-cb07-4e53-afaf-39ab28034920" + "c69c47b5-fb6a-47ed-ab34-51b5d2471a9c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "1d55af95-10f9-4e35-95c5-6d5bdb4f5172" + "6460e47f-8bfb-4b24-891f-41d99c99d6f6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T014950Z:1d55af95-10f9-4e35-95c5-6d5bdb4f5172" + "WESTUS2:20180518T221330Z:6460e47f-8bfb-4b24-891f-41d99c99d6f6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jNjljNDdiNS1mYjZhLTQ3ZWQtYWIzNC01MWI1ZDI0NzFhOWM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c69c47b5-fb6a-47ed-ab34-51b5d2471a9c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:13:29.94Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:49:59 GMT" + "Fri, 18 May 2018 22:13:39 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8edc8344-b7fb-4a61-a3cd-a9d98d8e4b61" + "2b74737a-c909-4f86-b9d1-379ef463f66e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "534561d0-6563-4ff5-9a28-a238c12c7600" + "c6cc1c13-b1b2-4343-b588-3b4f718f0968" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015000Z:534561d0-6563-4ff5-9a28-a238c12c7600" + "WESTUS2:20180518T221340Z:c6cc1c13-b1b2-4343-b588-3b4f718f0968" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jNjljNDdiNS1mYjZhLTQ3ZWQtYWIzNC01MWI1ZDI0NzFhOWM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c69c47b5-fb6a-47ed-ab34-51b5d2471a9c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:13:29.94Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:20 GMT" + "Fri, 18 May 2018 22:14:00 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "15d66bb2-4ee0-4de5-b1e3-dcc74865c837" + "0575f045-e5f5-4775-986e-8cf57e1bedfd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "19bcebd5-41a2-466c-a05c-c6f64e5ba3f0" + "e680f4f2-956a-4a18-a7bc-f7fa851e8aed" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015020Z:19bcebd5-41a2-466c-a05c-c6f64e5ba3f0" + "WESTUS2:20180518T221400Z:e680f4f2-956a-4a18-a7bc-f7fa851e8aed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/6e785afc-cb07-4e53-afaf-39ab28034920?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82ZTc4NWFmYy1jYjA3LTRlNTMtYWZhZi0zOWFiMjgwMzQ5MjA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/c69c47b5-fb6a-47ed-ab34-51b5d2471a9c?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jNjljNDdiNS1mYjZhLTQ3ZWQtYWIzNC01MWI1ZDI0NzFhOWM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"6e785afc-cb07-4e53-afaf-39ab28034920\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:49:50.603Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c69c47b5-fb6a-47ed-ab34-51b5d2471a9c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:13:29.94Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:39 GMT" + "Fri, 18 May 2018 22:14:19 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "07681f60-7586-4231-8262-aebd16c28cba" + "e62e486d-def0-4d15-98ea-d4e1fca9fcb4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "6ba635f2-d745-4f3a-a1b4-1ce07ff0813a" + "7e675978-7c93-4e85-ba19-fcd8eb5d5920" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015040Z:6ba635f2-d745-4f3a-a1b4-1ce07ff0813a" + "WESTUS2:20180518T221420Z:7e675978-7c93-4e85-ba19-fcd8eb5d5920" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MD9hcGktdmVyc2lvbj0yMDE1LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-70.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70\",\r\n \"name\": \"sqlcrudtest-70\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-5099.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099\",\r\n \"name\": \"sqlcrudtest-5099\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:40 GMT" + "Fri, 18 May 2018 22:14:19 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1fd3cffc-eeaa-4efd-8b46-c63e9cf520db" + "2ee3c571-a956-4afb-9e16-2eaa77067e3b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "6a4d4e60-e0c4-449d-a987-e8ce53848022" + "d9391b75-fead-479e-8e95-75e246be3754" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015040Z:6a4d4e60-e0c4-449d-a987-e8ce53848022" + "WESTUS2:20180518T221420Z:d9391b75-fead-479e-8e95-75e246be3754" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNTUzNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDY0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,20 +394,20 @@ "29" ], "x-ms-client-request-id": [ - "42605303-5c23-4839-8681-f8b6daa2788a" + "c5b0e33d-8efd-4828-8381-54a8530e917c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:14:20.71Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:40 GMT" + "Fri, 18 May 2018 22:14:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "5a3ea1c2-6576-403c-b0ba-8ec1f778e58d" + "4e98e78b-79b7-44ae-912f-7c456f3c6cac" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "9736468c-d5a4-4ed7-b8e1-572ffcab40e9" + "f7df9094-1e27-48aa-bdbc-bacf67fae449" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015041Z:9736468c-d5a4-4ed7-b8e1-572ffcab40e9" + "WESTUS2:20180518T221421Z:f7df9094-1e27-48aa-bdbc-bacf67fae449" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2MzYmQ5OTBmLTU2MGQtNDhiNi05MjgyLTdlMjQyNzNiNGY5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c3bd990f-560d-48b6-9282-7e24273b4f9d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:14:20.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:50:56 GMT" + "Fri, 18 May 2018 22:14:35 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4a8cac52-96a6-4472-b92a-8e1d9b340cef" + "e87a011f-8937-4d35-829d-f977bb7ebe0f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "b905f245-b4f0-426e-acf9-48c73d4a75e6" + "dff9ef90-9f81-4f22-90bb-85cd0b10f5af" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015056Z:b905f245-b4f0-426e-acf9-48c73d4a75e6" + "WESTUS2:20180518T221436Z:dff9ef90-9f81-4f22-90bb-85cd0b10f5af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2MzYmQ5OTBmLTU2MGQtNDhiNi05MjgyLTdlMjQyNzNiNGY5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c3bd990f-560d-48b6-9282-7e24273b4f9d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:14:20.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:11 GMT" + "Fri, 18 May 2018 22:14:51 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c76db829-4891-4942-b5c2-052fdd4867b9" + "a7d96a72-e1fa-4d79-bab1-bda33da7223d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "ea4e371f-c051-4679-996e-2f10c9b029ef" + "79f2e0a3-17bd-4b78-90c8-241c3b0a9c5f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015111Z:ea4e371f-c051-4679-996e-2f10c9b029ef" + "WESTUS2:20180518T221451Z:79f2e0a3-17bd-4b78-90c8-241c3b0a9c5f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/4b3ad924-e2c5-4795-b37a-05ac7237caaa?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzRiM2FkOTI0LWUyYzUtNDc5NS1iMzdhLTA1YWM3MjM3Y2FhYT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/c3bd990f-560d-48b6-9282-7e24273b4f9d?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2MzYmQ5OTBmLTU2MGQtNDhiNi05MjgyLTdlMjQyNzNiNGY5ZD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"4b3ad924-e2c5-4795-b37a-05ac7237caaa\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:50:41.597Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"c3bd990f-560d-48b6-9282-7e24273b4f9d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:14:20.71Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:26 GMT" + "Fri, 18 May 2018 22:15:05 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c9b32992-0881-4b31-92d0-01e9793cb02e" + "ccaef9e7-a8a0-4cf9-af82-435bb17871a9" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "d7311d2f-70c3-4df1-b2be-7545eb4eeb18" + "6f7b612f-b7b5-4ecd-be91-ed5e8f1c4c71" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015126Z:d7311d2f-70c3-4df1-b2be-7545eb4eeb18" + "WESTUS2:20180518T221506Z:6f7b612f-b7b5-4ecd-be91-ed5e8f1c4c71" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNTUzNj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMDY0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"7a645adf-4ce2-438b-bb7b-99ef97fcb20c\",\r\n \"creationDate\": \"2018-05-18T01:50:41.847Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:21:19.207Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\",\r\n \"name\": \"sqlcrudtest-5536\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"795e4c87-c085-44d9-94c2-9117ee2db9c4\",\r\n \"creationDate\": \"2018-05-18T22:14:21.13Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T22:45:05.18Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064\",\r\n \"name\": \"sqlcrudtest-1064\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:26 GMT" + "Fri, 18 May 2018 22:15:05 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6fa9ee64-5ef9-4f02-a58f-c2227a62a3e1" + "fd931d3c-9f05-4c76-b2a2-795998ff7745" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "57b630b6-cc3a-4500-a800-58beda2f90cc" + "c1bd4de3-8269-480a-a0ab-698af8315e73" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015126Z:57b630b6-cc3a-4500-a800-58beda2f90cc" + "WESTUS2:20180518T221506Z:c1bd4de3-8269-480a-a0ab-698af8315e73" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,29 +699,29 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "233" + "235" ], "x-ms-client-request-id": [ - "0050b407-3752-4777-8899-eee1a5b96f88" + "73fb5ba7-4121-48ce-95cf-8f15e2470fb0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "71" @@ -736,13 +736,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:27 GMT" + "Fri, 18 May 2018 22:15:06 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -751,19 +751,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "7f923ca2-c13e-4e09-bf7a-c11a44a128bd" + "78ee70bb-cbbc-4f34-986d-a4c9c53833f4" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "be311460-b3a6-4a73-968f-46f36fb33ef5" + "596d3545-8b2f-4f7f-9b84-fc3575c30d17" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015127Z:be311460-b3a6-4a73-968f-46f36fb33ef5" + "WESTUS2:20180518T221506Z:596d3545-8b2f-4f7f-9b84-fc3575c30d17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -775,17 +775,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -797,7 +797,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:42 GMT" + "Fri, 18 May 2018 22:15:21 GMT" ], "Pragma": [ "no-cache" @@ -815,16 +815,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8385e82c-4146-4d33-ac26-d32afc653ec0" + "3bdce320-c0ff-46c2-bbed-89fbf53e669b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "bb0b913e-0d9f-4ac0-8e42-958982d96ab2" + "7b344021-4f24-47a1-865b-d4dff784a48b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015142Z:bb0b913e-0d9f-4ac0-8e42-958982d96ab2" + "WESTUS2:20180518T221522Z:7b344021-4f24-47a1-865b-d4dff784a48b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,17 +836,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -858,7 +858,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:51:57 GMT" + "Fri, 18 May 2018 22:15:36 GMT" ], "Pragma": [ "no-cache" @@ -876,16 +876,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "ede5d092-8233-4c7f-8282-147205fd5e33" + "fddde452-5deb-4d63-afed-6a6c3767b76e" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "cf186837-bfee-4ee3-9369-6bea5ef6e2cc" + "afedb6b0-dfa5-4c09-9828-7f44e9a8db4e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015157Z:cf186837-bfee-4ee3-9369-6bea5ef6e2cc" + "WESTUS2:20180518T221537Z:afedb6b0-dfa5-4c09-9828-7f44e9a8db4e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -897,17 +897,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -919,7 +919,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:12 GMT" + "Fri, 18 May 2018 22:15:51 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "453fd724-a56d-4b13-b406-9251d72ab390" + "3b590a0c-011c-489b-8ec7-7347fc5cf3fc" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14989" ], "x-ms-correlation-request-id": [ - "f52e8d2a-38d2-4e00-8f04-0fa65ee51869" + "795259e7-68ae-484f-a9b3-b4549520f253" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015213Z:f52e8d2a-38d2-4e00-8f04-0fa65ee51869" + "WESTUS2:20180518T221552Z:795259e7-68ae-484f-a9b3-b4549520f253" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,17 +958,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -980,7 +980,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:27 GMT" + "Fri, 18 May 2018 22:16:06 GMT" ], "Pragma": [ "no-cache" @@ -998,16 +998,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "e4f5c365-4c83-455a-8f1d-bb385252b721" + "b3aee032-7344-4157-8453-f656d40930ee" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14988" ], "x-ms-correlation-request-id": [ - "0f43634a-414a-401a-878e-b0d20e692bcc" + "b2123ebd-61d2-46e4-a100-8a3a160cb65f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015228Z:0f43634a-414a-401a-878e-b0d20e692bcc" + "WESTUS2:20180518T221607Z:b2123ebd-61d2-46e4-a100-8a3a160cb65f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,17 +1019,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/aff4a716-f948-4994-ba01-d339cfd48b29?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmZjRhNzE2LWY5NDgtNDk5NC1iYTAxLWQzMzljZmQ0OGIyOT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"aff4a716-f948-4994-ba01-d339cfd48b29\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T01:51:27.253Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1041,7 +1041,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:42 GMT" + "Fri, 18 May 2018 22:16:21 GMT" ], "Pragma": [ "no-cache" @@ -1059,16 +1059,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8aa34515-50bb-4019-b534-b43a78d378f9" + "a72de13c-7e43-4397-a9cf-82906de68f0d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" + "14987" ], "x-ms-correlation-request-id": [ - "59956930-e5dd-4302-b829-e10d1ffe45fa" + "a97f22bb-7e37-4291-87f0-ab1ed64ed36c" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015243Z:59956930-e5dd-4302-b829-e10d1ffe45fa" + "WESTUS2:20180518T221622Z:a97f22bb-7e37-4291-87f0-ab1ed64ed36c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,17 +1080,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/databases/sqlcrudtest-5536\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1102,7 +1102,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:42 GMT" + "Fri, 18 May 2018 22:16:37 GMT" ], "Pragma": [ "no-cache" @@ -1110,6 +1110,9 @@ "Transfer-Encoding": [ "chunked" ], + "Retry-After": [ + "15" + ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -1117,16 +1120,77 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "de287e13-6eb0-4968-a332-a9d22bb31972" + "97583406-c717-42e2-a2bb-6ba9f5cfb293" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14986" + ], + "x-ms-correlation-request-id": [ + "09f11254-9239-41cd-9f56-67a69cd0d2fd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T221637Z:09f11254-9239-41cd-9f56-67a69cd0d2fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/93cb99be-aa76-443f-8ae4-62289bc27aa4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkzY2I5OWJlLWFhNzYtNDQzZi04YWU0LTYyMjg5YmMyN2FhND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"93cb99be-aa76-443f-8ae4-62289bc27aa4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:15:06.637Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 22:16:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4211301a-7bce-4d04-9193-b107f1161f81" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" ], "x-ms-correlation-request-id": [ - "3ae86910-82cb-42c9-8c1e-7ef4aba6cfe7" + "5f593306-2f1b-4081-ae78-5a9a3c497278" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015243Z:3ae86910-82cb-42c9-8c1e-7ef4aba6cfe7" + "WESTUS2:20180518T221652Z:5f593306-2f1b-4081-ae78-5a9a3c497278" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1138,8 +1202,66 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvY3JlZGVudGlhbHMvZHVtbXlsb2dpbj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/databases/sqlcrudtest-1064\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 18 May 2018 22:16:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ec5b7894-8864-420e-bfd9-33f6f8fc9ae6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "c22a4010-1bcd-4025-bcb9-3df3f1bbeb1b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180518T221652Z:c22a4010-1bcd-4025-bcb9-3df3f1bbeb1b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", "RequestHeaders": { @@ -1150,20 +1272,20 @@ "88" ], "x-ms-client-request-id": [ - "5c981184-6e05-42f2-8de8-3c7d15c28db8" + "bd8368fa-6868-42a5-81e1-24212075e592" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "290" + "292" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1175,7 +1297,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:42 GMT" + "Fri, 18 May 2018 22:16:52 GMT" ], "Pragma": [ "no-cache" @@ -1184,16 +1306,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "0f45d530-59ca-4b9c-9dc7-c938fb21b753" + "a0014ae6-9676-41ee-a904-1127994d4842" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1196" ], "x-ms-correlation-request-id": [ - "9a089f57-57fc-4b68-b1b7-eb8ef602dcef" + "f8664fc4-4870-4b79-966d-34fcf211a476" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015243Z:9a089f57-57fc-4b68-b1b7-eb8ef602dcef" + "WESTUS2:20180518T221653Z:f8664fc4-4870-4b79-966d-34fcf211a476" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1205,32 +1327,32 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvdGFyZ2V0R3JvdXBzL3RnMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-70\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-5099\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "382" + "386" ], "x-ms-client-request-id": [ - "b85db771-1179-4c83-8fa9-9575d64ef0c2" + "58111fb3-58ac-4462-8ebd-e33d3696220b" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-70\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-5099\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "536" + "542" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1242,7 +1364,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:44 GMT" + "Fri, 18 May 2018 22:16:53 GMT" ], "Pragma": [ "no-cache" @@ -1251,16 +1373,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "a7b9decd-bc91-4c6c-a8a6-c42804ddbb22" + "58a3a99b-1b01-4848-bcef-7edb26dba443" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1195" ], "x-ms-correlation-request-id": [ - "fe9db2f3-a08a-4ad6-95f9-81a0a776cb76" + "eb32c8a3-abe2-4e6c-9ce7-e8cd2abc08ca" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015244Z:fe9db2f3-a08a-4ad6-95f9-81a0a776cb76" + "WESTUS2:20180518T221654Z:eb32c8a3-abe2-4e6c-9ce7-e8cd2abc08ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1272,8 +1394,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -1284,20 +1406,20 @@ "140" ], "x-ms-client-request-id": [ - "fec1092a-c3fe-47e0-b138-69f4e4fa85b9" + "d178367b-d4d5-4769-916c-e12072c2a3d5" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "395" + "397" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1309,7 +1431,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:44 GMT" + "Fri, 18 May 2018 22:16:54 GMT" ], "Pragma": [ "no-cache" @@ -1318,16 +1440,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "298c4c5f-bf8f-4b6a-85b2-e02cfeb85b8a" + "07b5f81e-f477-4e01-9700-baa7e8c13cfa" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1194" ], "x-ms-correlation-request-id": [ - "15ed289a-1aea-4512-9f62-683045886241" + "cc5b0dbe-46d0-44e6-b1a8-f7156e757635" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015244Z:15ed289a-1aea-4512-9f62-683045886241" + "WESTUS2:20180518T221654Z:cc5b0dbe-46d0-44e6-b1a8-f7156e757635" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1339,32 +1461,32 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "458" + "462" ], "x-ms-client-request-id": [ - "ad24e4af-75b9-4d8a-a715-5c0178123dbd" + "bdaa09e6-8271-4bdc-b8a8-09eb600f78ee" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "863" + "869" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1376,7 +1498,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:45 GMT" + "Fri, 18 May 2018 22:16:55 GMT" ], "Pragma": [ "no-cache" @@ -1385,16 +1507,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "43024d33-19fb-4bb0-94ec-ccd1b26b781a" + "3efe7c2e-d86a-4498-ba1f-c17846ec1e7f" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1193" ], "x-ms-correlation-request-id": [ - "9fce6364-5342-4bf2-b343-065bb5b4eb5d" + "575d9432-de42-4103-93d7-c959bbb1daab" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015245Z:9fce6364-5342-4bf2-b343-065bb5b4eb5d" + "WESTUS2:20180518T221655Z:575d9432-de42-4103-93d7-c959bbb1daab" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1406,29 +1528,29 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"subscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"subscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "1197" + "1203" ], "x-ms-client-request-id": [ - "9b6614e0-4897-4365-8584-8f7d29f697d3" + "6e090100-9197-4218-a052-9c1072ddd40d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1440,7 +1562,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:46 GMT" + "Fri, 18 May 2018 22:16:55 GMT" ], "Pragma": [ "no-cache" @@ -1455,16 +1577,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c9246d29-daf3-4658-8d7c-1729e012680e" + "9088ce27-1af7-4e4a-bddd-3d3a94bafd11" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1192" ], "x-ms-correlation-request-id": [ - "554a1267-54af-4305-974b-ace34f7e5ad7" + "bbaf66e1-3ef8-452b-b9f7-6786156f20e0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015246Z:554a1267-54af-4305-974b-ace34f7e5ad7" + "WESTUS2:20180518T221655Z:bbaf66e1-3ef8-452b-b9f7-6786156f20e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1476,23 +1598,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "68501a29-a61c-40dd-8ac4-1de265a3f83c" + "32b4536d-4b12-4010-aedd-e52a5236f2ce" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1504,7 +1626,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:46 GMT" + "Fri, 18 May 2018 22:16:55 GMT" ], "Pragma": [ "no-cache" @@ -1519,16 +1641,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "552adf15-400e-44bd-b9be-3089309a18a4" + "9f5192ea-0cc7-492a-91f6-87e29c2b2ad1" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "14983" ], "x-ms-correlation-request-id": [ - "21bed326-906a-4eaa-a9da-668fa3736795" + "8f37669c-9558-4143-8388-25bdc0a1fc42" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015246Z:21bed326-906a-4eaa-a9da-668fa3736795" + "WESTUS2:20180518T221656Z:8f37669c-9558-4143-8388-25bdc0a1fc42" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1540,20 +1662,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8280/providers/Microsoft.Sql/servers/sqlcrudtest-70/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyODAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MC9qb2JBZ2VudHMvYWdlbnQvam9icy9qb2IxL3N0ZXBzL3N0ZXAxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-1232/providers/Microsoft.Sql/servers/sqlcrudtest-5099/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTEyMzIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01MDk5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6e898082-2d26-47ba-a0e2-651adf9b7c95" + "e39c5795-3eae-4ff8-a236-61ac1b255a41" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -1568,7 +1690,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:46 GMT" + "Fri, 18 May 2018 22:16:56 GMT" ], "Pragma": [ "no-cache" @@ -1577,16 +1699,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "65fbdfe4-99ee-42f9-979b-b1d4be5fd069" + "952413b5-175e-41fc-b429-05819c2d22a2" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "e6324b08-9fe8-4af7-8960-558602da097a" + "44cbb20d-a099-40c0-befa-3306cc8c8283" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015246Z:e6324b08-9fe8-4af7-8960-558602da097a" + "WESTUS2:20180518T221656Z:44cbb20d-a099-40c0-befa-3306cc8c8283" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1598,13 +1720,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1232?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9b96a71c-7273-48ef-b9af-7d69a6f4f77b" + "bb34472a-c31c-4c16-9785-cd48da0fe7fb" ], "accept-language": [ "en-US" @@ -1626,13 +1748,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:46 GMT" + "Fri, 18 May 2018 22:16:55 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyODAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyMzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1641,13 +1763,13 @@ "14999" ], "x-ms-request-id": [ - "51fa52af-2017-421f-86b5-75149d0ec40e" + "5c994a0b-3134-438b-a282-2f21a4ddf099" ], "x-ms-correlation-request-id": [ - "51fa52af-2017-421f-86b5-75149d0ec40e" + "5c994a0b-3134-438b-a282-2f21a4ddf099" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015247Z:51fa52af-2017-421f-86b5-75149d0ec40e" + "WESTUS2:20180518T221656Z:5c994a0b-3134-438b-a282-2f21a4ddf099" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1659,13 +1781,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8280?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-1232?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTEyMzI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "66a7520a-e15c-4086-9f6d-74e7ce1df4dd" + "b95c522b-0c09-4a23-8738-8586a943f06b" ], "accept-language": [ "en-US" @@ -1687,13 +1809,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 01:52:47 GMT" + "Fri, 18 May 2018 22:16:56 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyODAtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDEyMzItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1702,13 +1824,13 @@ "14998" ], "x-ms-request-id": [ - "204bab47-8838-44f8-91f7-4ce797ca1e18" + "6333310f-38fa-4229-82dd-c857b023e4a7" ], "x-ms-correlation-request-id": [ - "204bab47-8838-44f8-91f7-4ce797ca1e18" + "6333310f-38fa-4229-82dd-c857b023e4a7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T015247Z:204bab47-8838-44f8-91f7-4ce797ca1e18" + "WESTUS2:20180518T221657Z:6333310f-38fa-4229-82dd-c857b023e4a7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1722,13 +1844,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8280" + "sqlcrudtest-1232" ], "CreateServer": [ - "sqlcrudtest-70" + "sqlcrudtest-5099" ], "TestCreateUpdateDropJobStep": [ - "sqlcrudtest-5536" + "sqlcrudtest-1064" ] }, "Variables": { diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json index 311d69edb130..221e73153001 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestCreateUpdateDropTargetGroup.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7726?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc3MjY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8439\": \"2018-05-18 02:08:55Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7726\": \"2018-05-18 22:27:40Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "9b294804-0b29-4f7d-807d-2c3d180d4644" + "3e8aa359-2c5e-4eac-8419-ab5fc5857bb4" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439\",\r\n \"name\": \"sqlcrudtest-8439\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8439\": \"2018-05-18 02:08:55Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726\",\r\n \"name\": \"sqlcrudtest-7726\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7726\": \"2018-05-18 22:27:40Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,7 +38,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:08:55 GMT" + "Fri, 18 May 2018 22:27:41 GMT" ], "Pragma": [ "no-cache" @@ -47,13 +47,13 @@ "1199" ], "x-ms-request-id": [ - "591e1ddd-ab10-4051-af74-0fc1e173b05f" + "109431f8-0fa9-4bf2-9c6a-412a2fd39bf7" ], "x-ms-correlation-request-id": [ - "591e1ddd-ab10-4051-af74-0fc1e173b05f" + "109431f8-0fa9-4bf2-9c6a-412a2fd39bf7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020856Z:591e1ddd-ab10-4051-af74-0fc1e173b05f" + "WESTUS2:20180518T222741Z:109431f8-0fa9-4bf2-9c6a-412a2fd39bf7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", "RequestHeaders": { @@ -77,20 +77,20 @@ "183" ], "x-ms-client-request-id": [ - "f5d4157c-690f-4a47-9f93-1cf205d58060" + "08cba42e-1123-4d84-b92d-6024dd00af0d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:27:44.25Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "74" + "73" ], "Content-Type": [ "application/json; charset=utf-8" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:00 GMT" + "Fri, 18 May 2018 22:27:43 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverOperationResults/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverOperationResults/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "1ba5103e-f115-4bca-bb0e-ad4987ac5e3f" + "b861d9a0-388e-4681-b49c-7786e3e0d422" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "02b70de8-a117-4ed1-b94d-357d6da7dedb" + "a2ff99ff-9cf2-440b-bfbb-f293482644e4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020901Z:02b70de8-a117-4ed1-b94d-357d6da7dedb" + "WESTUS2:20180518T222744Z:a2ff99ff-9cf2-440b-bfbb-f293482644e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iODYxZDlhMC0zODhlLTQ2ODEtYjQ5Yy03Nzg2ZTNlMGQ0MjI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b861d9a0-388e-4681-b49c-7786e3e0d422\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:27:44.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:10 GMT" + "Fri, 18 May 2018 22:27:53 GMT" ], "Pragma": [ "no-cache" @@ -181,16 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "2fb917cf-801e-4e49-94a0-584b3f7e0c0f" + "e435f652-4173-4aff-9843-9eb151b30ef4" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14999" ], "x-ms-correlation-request-id": [ - "9e9ae5ed-2680-40ca-90db-576ab89d8708" + "fc83678f-a7e4-462a-971f-72553b825bb1" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020911Z:9e9ae5ed-2680-40ca-90db-576ab89d8708" + "WESTUS2:20180518T222754Z:fc83678f-a7e4-462a-971f-72553b825bb1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -202,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iODYxZDlhMC0zODhlLTQ2ODEtYjQ5Yy03Nzg2ZTNlMGQ0MjI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b861d9a0-388e-4681-b49c-7786e3e0d422\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:27:44.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -224,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:31 GMT" + "Fri, 18 May 2018 22:28:14 GMT" ], "Pragma": [ "no-cache" @@ -242,16 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4e3d98f4-fef0-459c-86d7-ee419daff3dc" + "66555da5-18c9-4cf0-a013-8660ca974e6b" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14998" ], "x-ms-correlation-request-id": [ - "fe27887b-9403-4ef3-8397-4386d5d973bf" + "a5febb96-193e-42ce-a074-73e08e821c3b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020931Z:fe27887b-9403-4ef3-8397-4386d5d973bf" + "WESTUS2:20180518T222814Z:a5febb96-193e-42ce-a074-73e08e821c3b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1ba5103e-f115-4bca-bb0e-ad4987ac5e3f?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8xYmE1MTAzZS1mMTE1LTRiY2EtYmIwZS1hZDQ5ODdhYzVlM2Y/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b861d9a0-388e-4681-b49c-7786e3e0d422?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iODYxZDlhMC0zODhlLTQ2ODEtYjQ5Yy03Nzg2ZTNlMGQ0MjI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"1ba5103e-f115-4bca-bb0e-ad4987ac5e3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:09:01.423Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b861d9a0-388e-4681-b49c-7786e3e0d422\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:27:44.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:51 GMT" + "Fri, 18 May 2018 22:28:33 GMT" ], "Pragma": [ "no-cache" @@ -303,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "26c34bbe-e5fb-4390-a0a3-a88cea41cc62" + "d40c519b-8a8e-4383-bb67-bc0e6035015c" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14997" ], "x-ms-correlation-request-id": [ - "388a853f-f340-472f-bbbc-fb2fb1fe1d17" + "b21bf4fd-d5f8-4ac8-9b4f-c8c997270e91" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020951Z:388a853f-f340-472f-bbbc-fb2fb1fe1d17" + "WESTUS2:20180518T222834Z:b21bf4fd-d5f8-4ac8-9b4f-c8c997270e91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -324,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9682.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682\",\r\n \"name\": \"sqlcrudtest-9682\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-2390.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390\",\r\n \"name\": \"sqlcrudtest-2390\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -346,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:51 GMT" + "Fri, 18 May 2018 22:28:33 GMT" ], "Pragma": [ "no-cache" @@ -361,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a8bfab4d-0c80-4368-bed2-327a2734fbb3" + "8848303e-ba16-448e-85de-4c2126bc8791" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14996" ], "x-ms-correlation-request-id": [ - "fad56f04-36d5-4adb-9508-1a01905f6074" + "5cfe21f1-d008-4a45-a36c-88c89a430fbc" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020951Z:fad56f04-36d5-4adb-9508-1a01905f6074" + "WESTUS2:20180518T222834Z:5cfe21f1-d008-4a45-a36c-88c89a430fbc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -382,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NjU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -394,20 +394,20 @@ "29" ], "x-ms-client-request-id": [ - "50e9ab21-7745-4ac3-ad13-524d9f7d702f" + "45e90c76-d3f7-42dc-b28e-ab466e4994c8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:28:34.753Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -419,13 +419,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:09:52 GMT" + "Fri, 18 May 2018 22:28:34 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -434,19 +434,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "665d8040-3056-4d89-ac9c-501cc346792c" + "3f6f7736-7d94-4368-a223-583264861d5b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "c42df404-d534-4513-998a-663e77c7a1a3" + "1fc9f6bd-d9f8-41e3-8737-91ecb679429d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T020953Z:c42df404-d534-4513-998a-663e77c7a1a3" + "WESTUS2:20180518T222834Z:1fc9f6bd-d9f8-41e3-8737-91ecb679429d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -458,17 +458,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNiMDkxNzEwLTMwNjQtNDE2Mi05MDllLTRmZGQ5ZWE3ZGE3ND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3b091710-3064-4162-909e-4fdd9ea7da74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:28:34.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -480,7 +480,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:07 GMT" + "Fri, 18 May 2018 22:28:49 GMT" ], "Pragma": [ "no-cache" @@ -498,16 +498,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a113ea25-5c32-481f-8b82-11d29999e3d9" + "9d251d99-e470-4e8f-89d7-c7894268676d" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14995" ], "x-ms-correlation-request-id": [ - "87923036-a16f-4b5f-8df1-f2da272eeae9" + "754ab701-aa1e-4079-afe1-46b1576dae67" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021008Z:87923036-a16f-4b5f-8df1-f2da272eeae9" + "WESTUS2:20180518T222850Z:754ab701-aa1e-4079-afe1-46b1576dae67" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -519,17 +519,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNiMDkxNzEwLTMwNjQtNDE2Mi05MDllLTRmZGQ5ZWE3ZGE3ND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3b091710-3064-4162-909e-4fdd9ea7da74\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:28:34.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -541,7 +541,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:22 GMT" + "Fri, 18 May 2018 22:29:04 GMT" ], "Pragma": [ "no-cache" @@ -559,16 +559,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8075ae56-5932-430b-8c0a-2208b7f50a4e" + "76565de7-22e6-44a3-a361-9770e7aa0a83" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14994" ], "x-ms-correlation-request-id": [ - "0846c4d9-e906-401f-a8fa-f4fdb2e10f58" + "ed23544b-82a4-440c-a7ad-aa8010205655" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021023Z:0846c4d9-e906-401f-a8fa-f4fdb2e10f58" + "WESTUS2:20180518T222905Z:ed23544b-82a4-440c-a7ad-aa8010205655" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -580,17 +580,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9dfa8dd4-fc65-404b-b716-a65c8089a34c?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzlkZmE4ZGQ0LWZjNjUtNDA0Yi1iNzE2LWE2NWM4MDg5YTM0Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/3b091710-3064-4162-909e-4fdd9ea7da74?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzNiMDkxNzEwLTMwNjQtNDE2Mi05MDllLTRmZGQ5ZWE3ZGE3ND9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"9dfa8dd4-fc65-404b-b716-a65c8089a34c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:09:52.07Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3b091710-3064-4162-909e-4fdd9ea7da74\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:28:34.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -602,7 +602,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:37 GMT" + "Fri, 18 May 2018 22:29:19 GMT" ], "Pragma": [ "no-cache" @@ -620,16 +620,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "faf03d7f-c54f-4bc9-b999-e52754b4be3a" + "3a6c8f0c-26f3-49ea-b328-4c8ca5978138" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14993" ], "x-ms-correlation-request-id": [ - "02f4d2da-d956-449c-8605-7514a63e8308" + "b4a072bb-2905-4106-8b7e-4a400ba1d508" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021038Z:02f4d2da-d956-449c-8605-7514a63e8308" + "WESTUS2:20180518T222920Z:b4a072bb-2905-4106-8b7e-4a400ba1d508" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -641,17 +641,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02NjU4P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMTI0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"0c1971af-c80b-40af-aef7-b15a1fd9e008\",\r\n \"creationDate\": \"2018-05-18T02:09:53.273Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T02:40:33.04Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\",\r\n \"name\": \"sqlcrudtest-6658\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"c2911a00-fffc-4c03-8bec-2e31c5efa0f2\",\r\n \"creationDate\": \"2018-05-18T22:28:34.99Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T22:59:13.73Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124\",\r\n \"name\": \"sqlcrudtest-1124\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -663,7 +663,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:37 GMT" + "Fri, 18 May 2018 22:29:19 GMT" ], "Pragma": [ "no-cache" @@ -678,16 +678,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8fb1931b-b941-41f9-9b98-a7015edfbc5f" + "f1cffec2-5a8e-4330-b7d1-f33a024de380" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14992" ], "x-ms-correlation-request-id": [ - "4d14e362-2526-4ebf-aa72-79376e39c448" + "1a1c1c89-d809-436e-b9e6-af79faa9d47a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021038Z:4d14e362-2526-4ebf-aa72-79376e39c448" + "WESTUS2:20180518T222920Z:1a1c1c89-d809-436e-b9e6-af79faa9d47a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -699,10 +699,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -711,20 +711,20 @@ "235" ], "x-ms-client-request-id": [ - "b0fecd09-8f58-4881-bb50-99d50257ce12" + "b605e732-818d-41c0-8598-0475c898bb2e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "70" + "71" ], "Content-Type": [ "application/json; charset=utf-8" @@ -736,13 +736,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:38 GMT" + "Fri, 18 May 2018 22:29:20 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -751,19 +751,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "ffe52cea-2a9a-4732-aff0-90b5c99bdd8b" + "1019aaa3-df78-41e5-aee0-31e79bf7526b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "f1988fe5-a740-44bf-a774-7562d35d1f6d" + "e49718a2-989c-4909-804e-ef0ca9d3efd6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021039Z:f1988fe5-a740-44bf-a774-7562d35d1f6d" + "WESTUS2:20180518T222920Z:e49718a2-989c-4909-804e-ef0ca9d3efd6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -775,17 +775,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -797,7 +797,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:10:54 GMT" + "Fri, 18 May 2018 22:29:34 GMT" ], "Pragma": [ "no-cache" @@ -815,16 +815,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "80efc866-825c-4293-936d-cddc8a3f1896" + "1affbb9c-8b4a-4386-aa62-fe48435464cb" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14991" ], "x-ms-correlation-request-id": [ - "7cb9de30-074d-486c-a3f7-33cc8b3edb66" + "e1c6a2c4-3dcf-4e26-ad32-afda00387529" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021054Z:7cb9de30-074d-486c-a3f7-33cc8b3edb66" + "WESTUS2:20180518T222935Z:e1c6a2c4-3dcf-4e26-ad32-afda00387529" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -836,17 +836,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -858,7 +858,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:11:08 GMT" + "Fri, 18 May 2018 22:29:50 GMT" ], "Pragma": [ "no-cache" @@ -876,16 +876,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "fd41e475-68a0-455b-9a41-1b0e718d5043" + "c343098a-feb4-48ad-9d65-4d8ba9478cfc" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14990" ], "x-ms-correlation-request-id": [ - "3df93709-4900-402e-934f-f54cb39cec4a" + "174e12ee-a6e3-4039-b939-f71fc1188953" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021109Z:3df93709-4900-402e-934f-f54cb39cec4a" + "WESTUS2:20180518T222950Z:174e12ee-a6e3-4039-b939-f71fc1188953" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -897,17 +897,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -919,7 +919,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:11:23 GMT" + "Fri, 18 May 2018 22:30:05 GMT" ], "Pragma": [ "no-cache" @@ -937,16 +937,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "bd273ef5-c5c4-47ea-abed-6146f2117412" + "25c31095-24b5-4fc1-afcf-6009dd5bcdbd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14989" ], "x-ms-correlation-request-id": [ - "da4ab16b-5ca0-41eb-b8d3-dcf97021c4cf" + "bfd363f6-5ea4-4890-a606-cf7bb6acc88d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021124Z:da4ab16b-5ca0-41eb-b8d3-dcf97021c4cf" + "WESTUS2:20180518T223005Z:bfd363f6-5ea4-4890-a606-cf7bb6acc88d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -958,17 +958,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -980,7 +980,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:11:39 GMT" + "Fri, 18 May 2018 22:30:20 GMT" ], "Pragma": [ "no-cache" @@ -998,16 +998,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3a2e5d87-a2c7-4e93-a304-8d8fd6fc47da" + "ee485bc1-3a7e-41b7-9ff7-c75db719065f" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14988" ], "x-ms-correlation-request-id": [ - "bd217bda-45f0-4202-bf0d-e89e1328467c" + "9f8f0665-93ac-4250-95ef-6e366a3c1ed7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021139Z:bd217bda-45f0-4202-bf0d-e89e1328467c" + "WESTUS2:20180518T223020Z:9f8f0665-93ac-4250-95ef-6e366a3c1ed7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1019,17 +1019,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1041,7 +1041,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:11:54 GMT" + "Fri, 18 May 2018 22:30:35 GMT" ], "Pragma": [ "no-cache" @@ -1059,16 +1059,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "3917201e-6d13-4dbd-8728-f015f600b02c" + "369240f3-0ccc-4b5f-bc5a-763cc095b8cb" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14987" ], "x-ms-correlation-request-id": [ - "c12b2b47-460e-48fe-b61f-8833122249e1" + "7caa05af-d07d-4686-9b25-8efc11f0859e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021154Z:c12b2b47-460e-48fe-b61f-8833122249e1" + "WESTUS2:20180518T223035Z:7caa05af-d07d-4686-9b25-8efc11f0859e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1080,17 +1080,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/af76e76a-03c6-4774-94c8-5dfc68f3c3a1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2FmNzZlNzZhLTAzYzYtNDc3NC05NGM4LTVkZmM2OGYzYzNhMT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"af76e76a-03c6-4774-94c8-5dfc68f3c3a1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:29:20.483Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1102,7 +1102,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:08 GMT" + "Fri, 18 May 2018 22:30:50 GMT" ], "Pragma": [ "no-cache" @@ -1120,16 +1120,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "13f269e0-a8cb-4a99-9af5-92d74e51877b" + "eae5072a-834f-4776-9440-964a327d8314" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14986" ], "x-ms-correlation-request-id": [ - "c4522743-f02d-441e-bd92-e9d242b28be4" + "e8582859-cd2c-414b-a4c9-32389f9d9b1b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021209Z:c4522743-f02d-441e-bd92-e9d242b28be4" + "WESTUS2:20180518T223050Z:e8582859-cd2c-414b-a4c9-32389f9d9b1b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1141,17 +1141,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/11bee9e6-500f-4665-87dc-00b1aed9d576?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzExYmVlOWU2LTUwMGYtNDY2NS04N2RjLTAwYjFhZWQ5ZDU3Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"11bee9e6-500f-4665-87dc-00b1aed9d576\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T02:10:38.72Z\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/databases/sqlcrudtest-1124\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1163,7 +1163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:23 GMT" + "Fri, 18 May 2018 22:30:50 GMT" ], "Pragma": [ "no-cache" @@ -1171,9 +1171,6 @@ "Transfer-Encoding": [ "chunked" ], - "Retry-After": [ - "15" - ], "Server": [ "Microsoft-HTTPAPI/2.0" ], @@ -1181,74 +1178,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d0b58104-795a-407b-ae03-d7529c6d3cea" + "c31fb77d-324a-4877-9977-8e943b350bc0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "14985" ], "x-ms-correlation-request-id": [ - "8509015d-97b7-43dd-b4dc-2ebb5d134534" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T021224Z:8509015d-97b7-43dd-b4dc-2ebb5d134534" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/databases/sqlcrudtest-6658\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 02:12:23 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "49ae86f1-2699-4d2d-9cf0-36378c0f7f2b" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" - ], - "x-ms-correlation-request-id": [ - "9b3bd1ef-c546-446d-b9a8-7ac506eb42aa" + "b38dd67c-31af-43af-8dcf-56a5765902b7" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021224Z:9b3bd1ef-c546-446d-b9a8-7ac506eb42aa" + "WESTUS2:20180518T223050Z:b38dd67c-31af-43af-8dcf-56a5765902b7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1260,8 +1199,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", "RequestHeaders": { @@ -1272,17 +1211,17 @@ "88" ], "x-ms-client-request-id": [ - "fc46c53a-ec48-4edf-b662-45e406f619de" + "7eea09f7-4ff7-4deb-8aa5-094ebd12830d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Length": [ "292" @@ -1297,7 +1236,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:25 GMT" + "Fri, 18 May 2018 22:30:52 GMT" ], "Pragma": [ "no-cache" @@ -1306,16 +1245,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "011dfa85-578a-413c-a3f0-700f4ea8fe02" + "17a80222-82c3-4cb4-b70e-2562c86210e1" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "8d245ae9-f27b-4acb-ad03-af9a898704a1" + "1df31b27-2bde-4647-8536-af18b2185105" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021226Z:8d245ae9-f27b-4acb-ad03-af9a898704a1" + "WESTUS2:20180518T223052Z:1df31b27-2bde-4647-8536-af18b2185105" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1327,10 +1266,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1339,17 +1278,17 @@ "372" ], "x-ms-client-request-id": [ - "56df17b1-3976-4628-b176-21c0ea3b8d3b" + "d0015844-6027-400f-aca3-84b82bec933f" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", "ResponseHeaders": { "Content-Length": [ "528" @@ -1364,7 +1303,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:25 GMT" + "Fri, 18 May 2018 22:30:52 GMT" ], "Pragma": [ "no-cache" @@ -1373,16 +1312,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ec4840fe-2b35-4f2f-b209-0959ab5bb70d" + "f727da0f-3f9a-4e4d-98e1-3faf64dc93f1" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "1f644d7c-aa8b-4082-a57f-a7b6551a5d33" + "47fa54da-aac6-4c53-9cf5-54edcfb44b76" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021226Z:1f644d7c-aa8b-4082-a57f-a7b6551a5d33" + "WESTUS2:20180518T223053Z:47fa54da-aac6-4c53-9cf5-54edcfb44b76" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1394,10 +1333,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1406,17 +1345,17 @@ "1267" ], "x-ms-client-request-id": [ - "2c2ac406-3fef-428a-81e6-fa8e46d75db1" + "caeab0df-8e53-4a71-b35d-492ab9d7026c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1428,7 +1367,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:26 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" @@ -1443,16 +1382,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d94c9f3a-81a8-4e50-8f35-c205dc8ba20e" + "522817c2-913c-43a0-8774-acfb1e9a1c1b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], "x-ms-correlation-request-id": [ - "c3cd44bb-00be-4663-a42a-7fe8be68f418" + "7f66ad3f-cd98-4a15-b94b-ee5a665b8196" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021227Z:c3cd44bb-00be-4663-a42a-7fe8be68f418" + "WESTUS2:20180518T223053Z:7f66ad3f-cd98-4a15-b94b-ee5a665b8196" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1464,23 +1403,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7a5e168d-344c-4eff-a4ae-ce243f05afbe" + "31ca6812-d9ac-44a1-9a64-24eed3f38382" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1492,7 +1431,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:26 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" @@ -1507,16 +1446,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8ea896a8-0449-427e-9ffb-f2cc3dbc028e" + "a7343daf-3fe2-443c-8b9a-fe00933f55d5" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14984" ], "x-ms-correlation-request-id": [ - "7090a8eb-6d3d-48f6-b89c-f53b09e09bac" + "0a9cfe9d-49f8-4d48-8798-796f4241aa0f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021227Z:7090a8eb-6d3d-48f6-b89c-f53b09e09bac" + "WESTUS2:20180518T223053Z:0a9cfe9d-49f8-4d48-8798-796f4241aa0f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1528,20 +1467,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8439/providers/Microsoft.Sql/servers/sqlcrudtest-9682/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg0MzkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NjgyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7726/providers/Microsoft.Sql/servers/sqlcrudtest-2390/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc3MjYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0yMzkwL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4b0b76a4-dd0a-4ee7-9db0-a70997ca9715" + "5f39d31c-4263-4249-95f3-73e1370a3440" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -1556,7 +1495,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:26 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" @@ -1565,16 +1504,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "ac65e6b0-773d-4a17-8f10-aaf6a376c123" + "d34ae65e-1d48-47dc-b605-dec2a22f43c3" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "26776d95-65b2-4243-95ab-4075aacfdd94" + "5fdcb136-7ee5-4e5f-9945-5dfa26882501" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021227Z:26776d95-65b2-4243-95ab-4075aacfdd94" + "WESTUS2:20180518T223053Z:5fdcb136-7ee5-4e5f-9945-5dfa26882501" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1586,13 +1525,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7726?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc3MjY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6e56fe0e-1efb-4924-98fb-74fdd9210f41" + "0257f392-882a-4488-b1da-fa42e3a7e3da" ], "accept-language": [ "en-US" @@ -1614,28 +1553,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:26 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0MzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDc3MjYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14997" ], "x-ms-request-id": [ - "644f08d8-3c28-4568-b310-c9181b8aaf1f" + "f1de9b95-ad8a-4a87-906d-2cfcca344d9d" ], "x-ms-correlation-request-id": [ - "644f08d8-3c28-4568-b310-c9181b8aaf1f" + "f1de9b95-ad8a-4a87-906d-2cfcca344d9d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021227Z:644f08d8-3c28-4568-b310-c9181b8aaf1f" + "WESTUS2:20180518T223054Z:f1de9b95-ad8a-4a87-906d-2cfcca344d9d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1647,13 +1586,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8439?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg0Mzk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7726?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc3MjY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "85d1950f-76a0-4c39-ad4f-9da5cfb68450" + "0b25737d-e827-4f1c-9723-ebfe6e8c043f" ], "accept-language": [ "en-US" @@ -1675,28 +1614,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 02:12:27 GMT" + "Fri, 18 May 2018 22:30:53 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg0MzktV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDc3MjYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14996" ], "x-ms-request-id": [ - "41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + "d8d62667-98d6-45a7-9463-348962d3ccfa" ], "x-ms-correlation-request-id": [ - "41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + "d8d62667-98d6-45a7-9463-348962d3ccfa" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T021228Z:41cfc319-8455-4b5e-b2fa-29e17ab44e1f" + "WESTUS2:20180518T223054Z:d8d62667-98d6-45a7-9463-348962d3ccfa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1710,17 +1649,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8439" + "sqlcrudtest-7726" ], "CreateServer": [ - "sqlcrudtest-9682" + "sqlcrudtest-2390" ], "TestCreateUpdateDropTargetGroup": [ - "sqlcrudtest-6658" + "sqlcrudtest-1124" ] }, "Variables": { - "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", - "DefaultLocation": "west us 2" + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" } } \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json index 2b0da26b149f..d01d9f61b4db 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.SqlDatabaseAgentScenarioTests/TestStartStopGetJobExecution.json @@ -1,10 +1,10 @@ { "Entries": [ { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8293?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7276\": \"2018-05-18 03:04:04Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8293\": \"2018-05-18 22:19:46Z\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,7 +13,7 @@ "98" ], "x-ms-client-request-id": [ - "06e2580b-7e7c-4562-8a83-34e9b9dda01e" + "47e2afa8-82f2-49d1-a102-7c7340f07b70" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276\",\r\n \"name\": \"sqlcrudtest-7276\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7276\": \"2018-05-18 03:04:04Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293\",\r\n \"name\": \"sqlcrudtest-8293\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8293\": \"2018-05-18 22:19:46Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "237" @@ -38,22 +38,22 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:04:04 GMT" + "Fri, 18 May 2018 22:19:46 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1199" ], "x-ms-request-id": [ - "75b687e7-ee3c-4263-aa1e-022cff90deae" + "24ac1144-e5c6-4311-98c6-4ef3ea53bca2" ], "x-ms-correlation-request-id": [ - "75b687e7-ee3c-4263-aa1e-022cff90deae" + "24ac1144-e5c6-4311-98c6-4ef3ea53bca2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030405Z:75b687e7-ee3c-4263-aa1e-022cff90deae" + "WESTUS2:20180518T221946Z:24ac1144-e5c6-4311-98c6-4ef3ea53bca2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -65,8 +65,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", "RequestHeaders": { @@ -77,17 +77,17 @@ "183" ], "x-ms-client-request-id": [ - "fc894820-5f49-412d-a7c2-8441841577de" + "f44574e6-8924-46e0-aa2e-f7bee0cbab44" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-18T22:19:48.753Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "74" @@ -102,13 +102,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:04:08 GMT" + "Fri, 18 May 2018 22:19:48 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverOperationResults/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverOperationResults/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview" ], "Retry-After": [ "1" @@ -117,19 +117,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview" ], "x-ms-request-id": [ - "e5ec2759-c49a-4708-9639-0d603c57ef0c" + "bf5a21a4-d6e5-40ee-98e4-81aefb003734" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "6e2508ff-fe6f-4124-ac8e-58d28f09c23b" + "4f136595-be8e-441f-bcc9-2b04fd8a529a" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030408Z:6e2508ff-fe6f-4124-ac8e-58d28f09c23b" + "WESTUS2:20180518T221948Z:4f136595-be8e-441f-bcc9-2b04fd8a529a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -141,17 +141,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iZjVhMjFhNC1kNmU1LTQwZWUtOThlNC04MWFlZmIwMDM3MzQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bf5a21a4-d6e5-40ee-98e4-81aefb003734\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:19:48.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +163,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:04:17 GMT" + "Fri, 18 May 2018 22:19:58 GMT" ], "Pragma": [ "no-cache" @@ -181,77 +181,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "01944712-5784-460b-9a58-488e83deb636" + "784e99c1-5d78-459b-9052-c5d01f9d698a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14997" - ], - "x-ms-correlation-request-id": [ - "d818ba5c-16d6-43da-9d27-a098e9de55d2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030418Z:d818ba5c-16d6-43da-9d27-a098e9de55d2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:04:38 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "20" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "11c4face-b9cc-4f4b-bf92-9adca285fc47" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "14999" ], "x-ms-correlation-request-id": [ - "2cf39562-13ef-4545-b327-4678945d2ffc" + "5cecbe38-0a7d-4387-a328-ff82e2586818" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030438Z:2cf39562-13ef-4545-b327-4678945d2ffc" + "WESTUS2:20180518T221959Z:5cecbe38-0a7d-4387-a328-ff82e2586818" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -263,17 +202,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iZjVhMjFhNC1kNmU1LTQwZWUtOThlNC04MWFlZmIwMDM3MzQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bf5a21a4-d6e5-40ee-98e4-81aefb003734\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:19:48.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -285,7 +224,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:04:58 GMT" + "Fri, 18 May 2018 22:20:18 GMT" ], "Pragma": [ "no-cache" @@ -303,199 +242,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "eb6ad01f-1588-475e-bdf3-0480bb80281f" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" - ], - "x-ms-correlation-request-id": [ - "dbb97c39-499b-43de-8468-06ff8bf4f3ca" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030458Z:dbb97c39-499b-43de-8468-06ff8bf4f3ca" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:05:18 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "fceda5bf-dea0-469f-a5f8-3bc30ddc72d2" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14991" - ], - "x-ms-correlation-request-id": [ - "933e215c-8409-4977-87cd-eca233d62136" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030518Z:933e215c-8409-4977-87cd-eca233d62136" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:05:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "8688d426-c5b1-43d4-8e8b-61c4569a0029" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" - ], - "x-ms-correlation-request-id": [ - "5f438d54-e463-4a8f-9494-dac531d50e06" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030534Z:5f438d54-e463-4a8f-9494-dac531d50e06" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:05:48 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "f1ae494c-5d7f-4f78-8cd8-a8e7f5489d7d" + "37c20d5c-bdb9-4b5e-9574-5a1ec6f46a72" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "14998" ], "x-ms-correlation-request-id": [ - "e7b76c85-3ce9-46a4-ae16-cae6a2c0de88" + "7e8d627f-abb2-4b64-9e0a-adbad6d017e2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030549Z:e7b76c85-3ce9-46a4-ae16-cae6a2c0de88" + "WESTUS2:20180518T222019Z:7e8d627f-abb2-4b64-9e0a-adbad6d017e2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -507,17 +263,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e5ec2759-c49a-4708-9639-0d603c57ef0c?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lNWVjMjc1OS1jNDlhLTQ3MDgtOTYzOS0wZDYwM2M1N2VmMGM/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bf5a21a4-d6e5-40ee-98e4-81aefb003734?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iZjVhMjFhNC1kNmU1LTQwZWUtOThlNC04MWFlZmIwMDM3MzQ/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"e5ec2759-c49a-4708-9639-0d603c57ef0c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:04:08.273Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bf5a21a4-d6e5-40ee-98e4-81aefb003734\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:19:48.753Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -529,7 +285,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:03 GMT" + "Fri, 18 May 2018 22:20:38 GMT" ], "Pragma": [ "no-cache" @@ -547,16 +303,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "902f57a8-dc42-487e-9150-3abb197cec1f" + "d7366b87-da33-4410-b95a-858f10f29e4c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "14997" ], "x-ms-correlation-request-id": [ - "7297f647-01ac-4a0d-b85f-c3312b204e29" + "f95aa685-cdbf-47a0-a796-084f2fe01712" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030604Z:7297f647-01ac-4a0d-b85f-c3312b204e29" + "WESTUS2:20180518T222039Z:f95aa685-cdbf-47a0-a796-084f2fe01712" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -568,17 +324,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378?api-version=2015-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7378.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378\",\r\n \"name\": \"sqlcrudtest-7378\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-8803.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803\",\r\n \"name\": \"sqlcrudtest-8803\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -590,7 +346,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:03 GMT" + "Fri, 18 May 2018 22:20:38 GMT" ], "Pragma": [ "no-cache" @@ -605,16 +361,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "72bcaaaa-2153-463b-9ef9-1771a97359e4" + "c46aa7dd-e3e6-4a6e-9276-525b2547214b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "14996" ], "x-ms-correlation-request-id": [ - "660d544f-5180-450b-ba0c-efaa332394c7" + "58fd6d7e-bbcb-4197-abc9-9089ea4256b6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030604Z:660d544f-5180-450b-ba0c-efaa332394c7" + "WESTUS2:20180518T222039Z:58fd6d7e-bbcb-4197-abc9-9089ea4256b6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -626,8 +382,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/firewallRules/allowAll?api-version=2014-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2ZpcmV3YWxsUnVsZXMvYWxsb3dBbGw/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/firewallRules/allowAll?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2ZpcmV3YWxsUnVsZXMvYWxsb3dBbGw/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "RequestHeaders": { @@ -638,17 +394,17 @@ "101" ], "x-ms-client-request-id": [ - "bd170b63-da64-4ea6-9b17-af0ff1732a80" + "ea32a00a-f15a-452b-8e8e-7852e199372e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/firewallRules/allowAll\",\r\n \"name\": \"allowAll\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West US 2\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/firewallRules/allowAll\",\r\n \"name\": \"allowAll\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West US 2\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "340" @@ -660,13 +416,13 @@ "no-store, no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:04 GMT" + "Fri, 18 May 2018 22:20:39 GMT" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "f9e1e810-36f5-4e2b-abf4-a44b52349e26" + "6ac03957-5666-4401-bb34-570f08733728" ], "X-Content-Type-Options": [ "nosniff" @@ -684,17 +440,17 @@ "1198" ], "x-ms-correlation-request-id": [ - "03d9fedd-fe5a-4463-a627-6eb3c87a81ee" + "2b659042-680e-4e08-b87c-34e20e6b22fa" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030605Z:03d9fedd-fe5a-4463-a627-6eb3c87a81ee" + "WESTUS2:20180518T222040Z:2b659042-680e-4e08-b87c-34e20e6b22fa" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMjgwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MzcyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { @@ -705,20 +461,20 @@ "29" ], "x-ms-client-request-id": [ - "c27301cb-ae45-43cb-a631-dec6b1ced66a" + "963ab102-6f01-431a-93c8-1f395b185a3d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-18T22:20:40.553Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -730,13 +486,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:05 GMT" + "Fri, 18 May 2018 22:20:39 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview" ], "Retry-After": [ "15" @@ -745,19 +501,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview" ], "x-ms-request-id": [ - "d659f7c3-ead5-4a2f-8b4d-14c0b82a417b" + "9bddcffd-e482-4df4-a3bb-38af9b060a75" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "5cd10198-1cd0-4803-8cd2-156ef27c4877" + "4ebc4276-6035-4e58-a8ef-0a178d95b933" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030605Z:5cd10198-1cd0-4803-8cd2-156ef27c4877" + "WESTUS2:20180518T222040Z:4ebc4276-6035-4e58-a8ef-0a178d95b933" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -769,17 +525,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkMmQ3OTU5LWY4NjAtNDdmNC1hNTZkLTQ3M2IwYjY3NmEyZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6d2d7959-f860-47f4-a56d-473b0b676a2e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:20:40.553Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -791,7 +547,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:20 GMT" + "Fri, 18 May 2018 22:20:55 GMT" ], "Pragma": [ "no-cache" @@ -809,16 +565,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "a5436133-f50d-4e17-a18c-f00746e9aa09" + "daf612d1-410e-4626-a49c-e57f881dde18" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "14995" ], "x-ms-correlation-request-id": [ - "2f761f92-a228-4b7b-9b78-9374d3e04df5" + "aab0548a-a921-40fa-a126-fea908736cc9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030620Z:2f761f92-a228-4b7b-9b78-9374d3e04df5" + "WESTUS2:20180518T222055Z:aab0548a-a921-40fa-a126-fea908736cc9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -830,17 +586,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkMmQ3OTU5LWY4NjAtNDdmNC1hNTZkLTQ3M2IwYjY3NmEyZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6d2d7959-f860-47f4-a56d-473b0b676a2e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:20:40.553Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -852,7 +608,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:35 GMT" + "Fri, 18 May 2018 22:21:10 GMT" ], "Pragma": [ "no-cache" @@ -870,16 +626,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5d5e8c58-194a-48cb-91b9-bb03d0473bc9" + "e0668c98-88f3-41ab-ae8a-9ce2d0192a4a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "14994" ], "x-ms-correlation-request-id": [ - "ccf7c356-2420-48b5-890b-da9b298994dc" + "5fca5ddd-5f36-4a26-9d59-848f0a6a098b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030635Z:ccf7c356-2420-48b5-890b-da9b298994dc" + "WESTUS2:20180518T222110Z:5fca5ddd-5f36-4a26-9d59-848f0a6a098b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -891,17 +647,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/76852961-7de1-4c49-a9de-b771c5b41f3f?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc2ODUyOTYxLTdkZTEtNGM0OS1hOWRlLWI3NzFjNWI0MWYzZj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6d2d7959-f860-47f4-a56d-473b0b676a2e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzZkMmQ3OTU5LWY4NjAtNDdmNC1hNTZkLTQ3M2IwYjY3NmEyZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"76852961-7de1-4c49-a9de-b771c5b41f3f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:06:05.81Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"6d2d7959-f860-47f4-a56d-473b0b676a2e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:20:40.553Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -913,7 +669,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:50 GMT" + "Fri, 18 May 2018 22:21:25 GMT" ], "Pragma": [ "no-cache" @@ -931,16 +687,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "cba8c9d1-bae4-4834-8a4c-212ea730b309" + "69b80b1c-d845-4fd5-aa1b-4a5d566e3ff7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "14993" ], "x-ms-correlation-request-id": [ - "f244d856-11b6-4673-bc6f-16f701201227" + "08b513c7-e70c-45d2-acc0-f686c369fb71" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030651Z:f244d856-11b6-4673-bc6f-16f701201227" + "WESTUS2:20180518T222125Z:08b513c7-e70c-45d2-acc0-f686c369fb71" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -952,17 +708,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xMjgwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02MzcyP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"d2fead04-a3d4-4699-8a9a-8185f60d179c\",\r\n \"creationDate\": \"2018-05-18T03:06:06.107Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T03:36:39.083Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\",\r\n \"name\": \"sqlcrudtest-1280\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"a15c74f1-634d-4697-9ca3-241171f60d76\",\r\n \"creationDate\": \"2018-05-18T22:20:40.803Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-18T22:51:23.547Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372\",\r\n \"name\": \"sqlcrudtest-6372\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -974,7 +730,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:50 GMT" + "Fri, 18 May 2018 22:21:25 GMT" ], "Pragma": [ "no-cache" @@ -989,16 +745,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "11c6bfd6-2a2b-421f-bbdd-27f40705ae24" + "b21d90ca-7406-4085-b34a-bee3b3c46f20" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "14992" ], "x-ms-correlation-request-id": [ - "4ab063ad-0696-4d5f-956b-c484f0c54046" + "6ce97c27-b956-4d0f-b744-c514ceb76aa9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030651Z:4ab063ad-0696-4d5f-956b-c484f0c54046" + "WESTUS2:20180518T222125Z:6ce97c27-b956-4d0f-b744-c514ceb76aa9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1010,10 +766,10 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372\"\r\n },\r\n \"location\": \"westus2\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1022,17 +778,17 @@ "235" ], "x-ms-client-request-id": [ - "3aba23a6-dbf5-488d-b410-5e2c32fea208" + "bc73822a-4c92-451f-89ee-1bdd91511688" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Length": [ "70" @@ -1047,13 +803,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:06:50 GMT" + "Fri, 18 May 2018 22:21:26 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview" ], "Retry-After": [ "15" @@ -1062,19 +818,19 @@ "Microsoft-HTTPAPI/2.0" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview" ], "x-ms-request-id": [ - "cbc9efba-8c21-40b5-8868-6c24e287c408" + "e4b32533-2520-412a-92be-4f06736ed04a" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "a86ce364-28bf-43cc-a1aa-7b59d91b6a68" + "282fe5f7-52f3-46ad-ac5f-a79b0156060b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030651Z:a86ce364-28bf-43cc-a1aa-7b59d91b6a68" + "WESTUS2:20180518T222126Z:282fe5f7-52f3-46ad-ac5f-a79b0156060b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1086,17 +842,17 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1108,7 +864,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:07:05 GMT" + "Fri, 18 May 2018 22:21:40 GMT" ], "Pragma": [ "no-cache" @@ -1126,199 +882,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f906e787-f3ad-4228-92b0-c9d5f65e2bd3" + "f007102c-4242-46c3-be09-e112b073d1ea" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14978" - ], - "x-ms-correlation-request-id": [ - "e6f1213a-bfcd-40a2-b35e-31e6172d2a39" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030706Z:e6f1213a-bfcd-40a2-b35e-31e6172d2a39" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:07:21 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "1bee5de9-88f4-4843-a657-e3cbef065746" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" - ], - "x-ms-correlation-request-id": [ - "f3989880-18b0-456d-a4f0-479c466244e8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030721Z:f3989880-18b0-456d-a4f0-479c466244e8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:07:35 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "20fcbc60-8408-4178-a47b-ed334245f261" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" - ], - "x-ms-correlation-request-id": [ - "4fdfe6b4-462b-43bd-9362-b543b368d948" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20180518T030736Z:4fdfe6b4-462b-43bd-9362-b543b368d948" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" - ] - }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 18 May 2018 03:07:51 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Retry-After": [ - "15" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-request-id": [ - "8395b813-6f85-441d-9d5e-6e6809070e5a" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "14991" ], "x-ms-correlation-request-id": [ - "fcb1e9d8-6771-4404-a3c0-38f931098283" + "9b2c270f-61fd-4bae-b4a3-805243ef1dbf" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030751Z:fcb1e9d8-6771-4404-a3c0-38f931098283" + "WESTUS2:20180518T222141Z:9b2c270f-61fd-4bae-b4a3-805243ef1dbf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1330,17 +903,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1352,7 +925,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:06 GMT" + "Fri, 18 May 2018 22:21:56 GMT" ], "Pragma": [ "no-cache" @@ -1370,16 +943,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "b51b6e43-3e96-460a-8c0d-16182b253748" + "2bfcdec6-a3ef-44f3-b0af-f36fb75d4413" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14972" + "14990" ], "x-ms-correlation-request-id": [ - "e584dfbd-088d-47eb-a656-2d47a290fbf7" + "75afccab-6fea-4bc1-8883-16dedeee4ce0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030806Z:e584dfbd-088d-47eb-a656-2d47a290fbf7" + "WESTUS2:20180518T222156Z:75afccab-6fea-4bc1-8883-16dedeee4ce0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1391,17 +964,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1413,7 +986,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:20 GMT" + "Fri, 18 May 2018 22:22:11 GMT" ], "Pragma": [ "no-cache" @@ -1431,16 +1004,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "99a99280-b952-4728-b365-3b6ddfd437cb" + "f8de40e9-8a2c-4a65-a686-f7822df230be" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14969" + "14989" ], "x-ms-correlation-request-id": [ - "1cd74cdd-a47d-4fac-813e-eb5fbea23f0f" + "1e1fa240-7835-445e-9fc3-a4d9c90e2330" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030821Z:1cd74cdd-a47d-4fac-813e-eb5fbea23f0f" + "WESTUS2:20180518T222211Z:1e1fa240-7835-445e-9fc3-a4d9c90e2330" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1452,17 +1025,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1474,7 +1047,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:36 GMT" + "Fri, 18 May 2018 22:22:25 GMT" ], "Pragma": [ "no-cache" @@ -1492,16 +1065,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "4e5ce4f8-948f-4fd2-a3aa-2419e25b6347" + "2dfcfe9f-ea16-403b-8b7a-77cc2a6ac7da" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14967" + "14988" ], "x-ms-correlation-request-id": [ - "08d00152-259f-4b5a-981a-4c28799ff364" + "b4c7dc17-a919-4f3d-8124-5a5edc715c68" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030836Z:08d00152-259f-4b5a-981a-4c28799ff364" + "WESTUS2:20180518T222226Z:b4c7dc17-a919-4f3d-8124-5a5edc715c68" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1513,17 +1086,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/92fe8d41-3880-4ead-b154-7d8fad2da11d?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzkyZmU4ZDQxLTM4ODAtNGVhZC1iMTU0LTdkOGZhZDJkYTExZD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/bfd339ad-69e4-4338-8498-0018bf36508b?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2JmZDMzOWFkLTY5ZTQtNDMzOC04NDk4LTAwMThiZjM2NTA4Yj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"name\": \"92fe8d41-3880-4ead-b154-7d8fad2da11d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T03:06:51.28Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"bfd339ad-69e4-4338-8498-0018bf36508b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-18T22:21:26.25Z\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1535,7 +1108,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:51 GMT" + "Fri, 18 May 2018 22:22:41 GMT" ], "Pragma": [ "no-cache" @@ -1553,16 +1126,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "5073333d-033e-4b73-b5d2-b23d02db681d" + "7713f74f-7052-45b3-93c8-82158a628b4e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14966" + "14987" ], "x-ms-correlation-request-id": [ - "2e595697-bb17-47d0-b0a8-8ed875a09901" + "61404afc-1844-4a65-9f33-27d36c034ff0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030851Z:2e595697-bb17-47d0-b0a8-8ed875a09901" + "WESTUS2:20180518T222241Z:61404afc-1844-4a65-9f33-27d36c034ff0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1574,17 +1147,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/databases/sqlcrudtest-1280\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/databases/sqlcrudtest-6372\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1596,7 +1169,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:51 GMT" + "Fri, 18 May 2018 22:22:41 GMT" ], "Pragma": [ "no-cache" @@ -1611,16 +1184,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "eea29f5c-8d10-4ffb-be6f-0b28962fc67a" + "dde07532-1a50-49fe-9332-e940a755a68e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14965" + "14986" ], "x-ms-correlation-request-id": [ - "f890b9ee-2fab-4b0f-b888-8034f46a3bc4" + "084f6b47-3a7a-4c37-ab4b-276cad45fb86" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030851Z:f890b9ee-2fab-4b0f-b888-8034f46a3bc4" + "WESTUS2:20180518T222241Z:084f6b47-3a7a-4c37-ab4b-276cad45fb86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1632,8 +1205,8 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", "RequestHeaders": { @@ -1644,17 +1217,17 @@ "88" ], "x-ms-client-request-id": [ - "4ef165af-86fb-4260-b3ec-9b90a73f8eed" + "d71ac929-c112-4350-ac5b-6f8c353a0004" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", "ResponseHeaders": { "Content-Length": [ "292" @@ -1669,7 +1242,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:51 GMT" + "Fri, 18 May 2018 22:22:42 GMT" ], "Pragma": [ "no-cache" @@ -1678,16 +1251,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "8489e2d8-16b7-4ad2-8333-25888a70307e" + "29f80257-4430-4e91-81d2-e9f4c33a4691" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], "x-ms-correlation-request-id": [ - "6444b11c-9607-474a-a4c3-c32d5e8c1084" + "d4aadf3d-6940-4959-bb63-c186ca67ac86" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030852Z:6444b11c-9607-474a-a4c3-c32d5e8c1084" + "WESTUS2:20180518T222242Z:d4aadf3d-6940-4959-bb63-c186ca67ac86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1699,10 +1272,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1711,17 +1284,17 @@ "228" ], "x-ms-client-request-id": [ - "eda93ee6-7cf3-4f3a-b947-80c9905079a0" + "f2827fa4-58a8-46c8-ac2f-c99016c8f6e0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", "ResponseHeaders": { "Content-Length": [ "384" @@ -1736,7 +1309,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:52 GMT" + "Fri, 18 May 2018 22:22:42 GMT" ], "Pragma": [ "no-cache" @@ -1745,16 +1318,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "12629311-abbb-4b82-9321-43c174b1177b" + "29f3052d-a4a8-4b2b-b8b2-579122fa150d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], "x-ms-correlation-request-id": [ - "d13ac651-9f45-4ea2-bfd0-87294cb94f71" + "5e1520f5-b162-42ff-8e76-8d02e0203094" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030853Z:d13ac651-9f45-4ea2-bfd0-87294cb94f71" + "WESTUS2:20180518T222243Z:5e1520f5-b162-42ff-8e76-8d02e0203094" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1766,8 +1339,8 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", "RequestHeaders": { @@ -1778,17 +1351,17 @@ "140" ], "x-ms-client-request-id": [ - "6521ae74-9785-4820-a1e7-fc50d1ba5438" + "04346809-5837-4a72-9e07-749d121fb079" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", "ResponseHeaders": { "Content-Length": [ "397" @@ -1803,7 +1376,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:53 GMT" + "Fri, 18 May 2018 22:22:43 GMT" ], "Pragma": [ "no-cache" @@ -1812,16 +1385,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "403e8a7e-cfcf-4683-a9f2-1c9a83afc1cb" + "7d7ed0a3-655a-46c8-8daa-e0de9d06c54d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], "x-ms-correlation-request-id": [ - "249fcc8f-5ba1-4dd9-a1e0-6e237446d2a8" + "e12b902d-da18-46e6-8cc2-f08e44687455" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030853Z:249fcc8f-5ba1-4dd9-a1e0-6e237446d2a8" + "WESTUS2:20180518T222243Z:e12b902d-da18-46e6-8cc2-f08e44687455" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1833,10 +1406,10 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1845,17 +1418,17 @@ "462" ], "x-ms-client-request-id": [ - "df314c76-2558-4ee8-8365-722a86c2abe2" + "a7004e37-3c89-4ebd-b307-cca8bd4cd001" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", "ResponseHeaders": { "Content-Length": [ "869" @@ -1870,7 +1443,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:53 GMT" + "Fri, 18 May 2018 22:22:44 GMT" ], "Pragma": [ "no-cache" @@ -1879,16 +1452,16 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "560b19c6-ef5c-4ac7-9975-102cd5acc129" + "c1462834-d922-4d63-91a4-b3035253877b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], "x-ms-correlation-request-id": [ - "8441cec9-0366-450f-b2e8-36a630090cb9" + "5c8df36e-ae44-453a-842d-4a7fa4501c64" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030854Z:8441cec9-0366-450f-b2e8-36a630090cb9" + "WESTUS2:20180518T222244Z:5c8df36e-ae44-453a-842d-4a7fa4501c64" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1900,23 +1473,23 @@ "StatusCode": 201 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/start?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RhcnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/start?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RhcnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "efe04e21-67ac-46fe-b009-6367d3dc6936" + "bc5a0b89-907d-434e-a25d-3d66ced76e02" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Created\",\r\n \"provisioningState\": \"Created\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution created.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Created\",\r\n \"provisioningState\": \"Created\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution created.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1928,7 +1501,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:08:54 GMT" + "Fri, 18 May 2018 22:22:44 GMT" ], "Pragma": [ "no-cache" @@ -1937,7 +1510,7 @@ "chunked" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d?api-version=2017-03-01-preview" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1946,16 +1519,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "c0dd9f6c-c120-4718-be21-2e802c20e891" + "5337e672-46f0-48c5-8bb3-5ccdf0c25c05" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], "x-ms-correlation-request-id": [ - "a4a32cf0-ce7a-4040-94fe-4fe97413eccc" + "57f7059c-1507-428f-b526-f74200f927d0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030854Z:a4a32cf0-ce7a-4040-94fe-4fe97413eccc" + "WESTUS2:20180518T222245Z:57f7059c-1507-428f-b526-f74200f927d0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1967,17 +1540,17 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"startTime\": \"2018-05-18T22:22:49.3431923Z\",\r\n \"endTime\": \"2018-05-18T22:23:06.5464262Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -1989,7 +1562,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:15 GMT" ], "Pragma": [ "no-cache" @@ -2004,16 +1577,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "1aaf74da-e6db-451d-b933-5e6261f37050" + "ee1217d6-5892-486d-9727-f4c0c159ec02" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14962" + "14985" ], "x-ms-correlation-request-id": [ - "55c2f2e7-723d-4ace-b142-0878cc76578d" + "a6eac165-6f53-4a3d-b43a-f0b5cd0da559" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:55c2f2e7-723d-4ace-b142-0878cc76578d" + "WESTUS2:20180518T222315Z:a6eac165-6f53-4a3d-b43a-f0b5cd0da559" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2025,23 +1598,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7741005f-1c07-4a15-897b-3f981ebe965a" + "32a5f6e8-d685-4ffc-ac0c-83f657b25d2d" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"startTime\": \"2018-05-18T22:22:49.3431923Z\",\r\n \"endTime\": \"2018-05-18T22:23:06.5464262Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2053,7 +1626,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:16 GMT" ], "Pragma": [ "no-cache" @@ -2068,16 +1641,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "22a9c67c-69bf-48c3-bef5-aa5222646486" + "1fd24332-305c-472c-801b-b355c2921d77" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14959" + "14982" ], "x-ms-correlation-request-id": [ - "7149e253-fade-414e-95fc-7cf642d95870" + "e170688c-0d4b-45c2-9976-99db9a7dd126" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:7149e253-fade-414e-95fc-7cf642d95870" + "WESTUS2:20180518T222316Z:e170688c-0d4b-45c2-9976-99db9a7dd126" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2089,23 +1662,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/executions?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9leGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9leGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3e343e0b-d6fc-448d-b8cb-70b038afb94e" + "35391ed2-ff8e-41c8-ba3c-d59ea515c858" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:58.5850226Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.3664418Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"name\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"startTime\": \"2018-05-18T22:22:49.3431923Z\",\r\n \"endTime\": \"2018-05-18T22:23:06.5464262Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"lifecycle\": \"Skipped\",\r\n \"provisioningState\": \"Canceled\",\r\n \"createTime\": \"2018-05-18T22:22:51.1088269Z\",\r\n \"startTime\": \"2018-05-18T22:22:54.0619692Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.9214286Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution skipped.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"name\": \"d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2117,7 +1690,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:16 GMT" ], "Pragma": [ "no-cache" @@ -2132,16 +1705,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f5eb320d-3dad-4d6f-9a75-635b53b98db3" + "04ba2546-1c56-4a86-8062-084e7806f0f0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14961" + "14984" ], "x-ms-correlation-request-id": [ - "c7e095f6-c949-4df5-8dea-08e75765ab4b" + "084160e5-5485-4a13-9c57-9fb99308019b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:c7e095f6-c949-4df5-8dea-08e75765ab4b" + "WESTUS2:20180518T222316Z:084160e5-5485-4a13-9c57-9fb99308019b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2153,23 +1726,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bd981b90-b033-4995-8b97-870b853e1629" + "3129970c-eedc-4d77-8c3f-0c91314a1ff5" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:58.5850226Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.3664418Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"name\": \"95006fdc-a68a-48b0-9c16-5f716ff2ef61\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:08:54.77Z\",\r\n \"startTime\": \"2018-05-18T03:09:00.4132289Z\",\r\n \"endTime\": \"2018-05-18T03:09:23.0704951Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"name\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:45.2666667Z\",\r\n \"startTime\": \"2018-05-18T22:22:49.3431923Z\",\r\n \"endTime\": \"2018-05-18T22:23:06.5464262Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"name\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"lifecycle\": \"Skipped\",\r\n \"provisioningState\": \"Canceled\",\r\n \"createTime\": \"2018-05-18T22:22:51.1088269Z\",\r\n \"startTime\": \"2018-05-18T22:22:54.0619692Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.9214286Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution skipped.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"name\": \"d2325e9e-4210-4974-aae0-3362b6a81376\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2181,7 +1754,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:16 GMT" ], "Pragma": [ "no-cache" @@ -2196,16 +1769,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "8d43973d-b471-4c55-a6b2-0699996ad26d" + "46857b71-28a9-418e-911f-3c70c8fca01e" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14960" + "14983" ], "x-ms-correlation-request-id": [ - "ee5b6f7c-1535-4e89-a03b-7e7f659eb836" + "c5ce472f-ea9e-4713-b556-9c47f926c298" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:ee5b6f7c-1535-4e89-a03b-7e7f659eb836" + "WESTUS2:20180518T222316Z:c5ce472f-ea9e-4713-b556-9c47f926c298" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2217,23 +1790,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b46faeb8-dfd4-4927-a291-dd132d337588" + "d8f88560-9efa-44ad-9f0e-2a010de7efe0" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:00.3976512Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.350817Z\",\r\n \"endTime\": \"2018-05-18T03:09:22.3985736Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:14.0857214Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:49.3275915Z\",\r\n \"startTime\": \"2018-05-18T22:22:50.5932003Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.9214286Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:22:59.3588849Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2245,7 +1818,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:25 GMT" + "Fri, 18 May 2018 22:23:16 GMT" ], "Pragma": [ "no-cache" @@ -2260,16 +1833,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "6861abfb-6488-4289-8bfc-1d8d5a251e59" + "7ee1d649-491e-4eb3-b8f1-4c2994b2243b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14958" + "14981" ], "x-ms-correlation-request-id": [ - "b6c8f168-aca8-4777-b14a-27b7b90f9509" + "e1925ece-2005-49aa-843e-640d41273aa9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030925Z:b6c8f168-aca8-4777-b14a-27b7b90f9509" + "WESTUS2:20180518T222317Z:e1925ece-2005-49aa-843e-640d41273aa9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2281,23 +1854,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "eedbbf9a-b685-4aa3-a9c4-3f676a77b2f5" + "1c6e3ade-791e-48d3-aeb6-06c0e9560cf8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:00.3976512Z\",\r\n \"startTime\": \"2018-05-18T03:09:02.350817Z\",\r\n \"endTime\": \"2018-05-18T03:09:22.3985736Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:14.0857214Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:49.3275915Z\",\r\n \"startTime\": \"2018-05-18T22:22:50.5932003Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.9214286Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:22:59.3588849Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2309,7 +1882,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:26 GMT" + "Fri, 18 May 2018 22:23:17 GMT" ], "Pragma": [ "no-cache" @@ -2324,16 +1897,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "f05bcc22-8fef-466b-9878-15f9e7b9865d" + "10cab792-4fac-40fc-83f0-d124f60c63cf" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14957" + "14980" ], "x-ms-correlation-request-id": [ - "742706d2-65f4-417f-b29c-ae264cc654e0" + "68ce3945-737f-45ed-aa72-b61e392ec8b3" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030926Z:742706d2-65f4-417f-b29c-ae264cc654e0" + "WESTUS2:20180518T222317Z:68ce3945-737f-45ed-aa72-b61e392ec8b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2345,23 +1918,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/targets?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "defa2fb7-5b68-43c7-a70e-65099779f5f8" + "e302e983-0aeb-4261-bb88-d4cdb1c38024" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:59.3433333Z\",\r\n \"startTime\": \"2018-05-18T22:23:01.1089076Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.3432933Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:23:01.2651579Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-8803', database 'sqlcrudtest-6372').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets/d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"name\": \"d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2373,7 +1946,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:26 GMT" + "Fri, 18 May 2018 22:23:17 GMT" ], "Pragma": [ "no-cache" @@ -2388,16 +1961,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "313422cf-3f1d-4c9f-898e-f5400fe89545" + "ddaffe78-ea2f-4585-9346-90dfaa64711b" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14956" + "14979" ], "x-ms-correlation-request-id": [ - "1e03c56f-f2a8-4e6e-a206-80f585a3e6ae" + "c9bcf608-ce6d-4679-831d-10b6dec615e5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030926Z:1e03c56f-f2a8-4e6e-a206-80f585a3e6ae" + "WESTUS2:20180518T222317Z:c9bcf608-ce6d-4679-831d-10b6dec615e5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2409,23 +1982,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvc3RlcHMvc3RlcDEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a4b1e561-88f4-4b87-9414-72e002423589" + "6d76cb90-a5bb-4067-9373-8ea7c4281e2e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:59.3433333Z\",\r\n \"startTime\": \"2018-05-18T22:23:01.1089076Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.3432933Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:23:01.2651579Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-8803', database 'sqlcrudtest-6372').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets/d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"name\": \"d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2437,7 +2010,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:26 GMT" + "Fri, 18 May 2018 22:23:17 GMT" ], "Pragma": [ "no-cache" @@ -2452,16 +2025,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "7bcf4668-8701-47f6-94e9-5c35cb807b0d" + "7a430ee4-d3fc-4e07-b809-7c46937a3fec" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14955" + "14978" ], "x-ms-correlation-request-id": [ - "f455572b-306d-4efb-ae04-c02ece9c27e6" + "8b7c2367-37cd-4085-86a7-9aa898fed523" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030926Z:f455572b-306d-4efb-ae04-c02ece9c27e6" + "WESTUS2:20180518T222317Z:8b7c2367-37cd-4085-86a7-9aa898fed523" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2473,23 +2046,23 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvc3RlcHMvc3RlcDEvdGFyZ2V0cy8wODgxNmQ0NS1lMmZiLTRlNGEtOWQ2Yi02N2I2ZjA3NDk5Mzc/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets/d2e70491-02cb-41ec-8328-4234c108b02a?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvc3RlcHMvc3RlcDEvdGFyZ2V0cy9kMmU3MDQ5MS0wMmNiLTQxZWMtODMyOC00MjM0YzEwOGIwMmE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8dd79bb5-fc8f-40d1-828f-5384ec9e3586" + "6baa1222-c73c-4ffa-bf6f-bab4b3047c55" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"91d02598-ddac-4389-8cfa-8e0d01e4d2fa\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T03:09:14.66Z\",\r\n \"startTime\": \"2018-05-18T03:09:15.9139241Z\",\r\n \"endTime\": \"2018-05-18T03:09:21.8048292Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T03:09:16.429592Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-7378', database 'sqlcrudtest-1280').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-7378\",\r\n \"databaseName\": \"sqlcrudtest-1280\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/steps/step1/targets/08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"name\": \"08816d45-e2fb-4e4a-9d6b-67b6f0749937\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"69b8c85a-02fb-4c10-9741-8526d3c6cc1d\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-18T22:22:59.3433333Z\",\r\n \"startTime\": \"2018-05-18T22:23:01.1089076Z\",\r\n \"endTime\": \"2018-05-18T22:23:05.3432933Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-18T22:23:01.2651579Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-8803', database 'sqlcrudtest-6372').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-8803\",\r\n \"databaseName\": \"sqlcrudtest-6372\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/steps/step1/targets/d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"name\": \"d2e70491-02cb-41ec-8328-4234c108b02a\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -2501,7 +2074,7 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:26 GMT" + "Fri, 18 May 2018 22:23:17 GMT" ], "Pragma": [ "no-cache" @@ -2516,16 +2089,16 @@ "Accept-Encoding" ], "x-ms-request-id": [ - "d161fa9e-7d0b-4b32-bb21-0ec90bb82bfc" + "7291913b-93c7-4a91-9e51-b9574561134f" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14954" + "14977" ], "x-ms-correlation-request-id": [ - "5fb2d14f-8ce8-4021-bcb8-9b74f57d3a89" + "ee2e1de8-126a-4b46-8300-0e0817c90a56" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030926Z:5fb2d14f-8ce8-4021-bcb8-9b74f57d3a89" + "WESTUS2:20180518T222317Z:ee2e1de8-126a-4b46-8300-0e0817c90a56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2537,20 +2110,20 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa/cancel?api-version=2017-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTcyNzYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03Mzc4L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy85MWQwMjU5OC1kZGFjLTQzODktOGNmYS04ZTBkMDFlNGQyZmEvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d/cancel?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC04ODAzL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy82OWI4Yzg1YS0wMmZiLTRjMTAtOTc0MS04NTI2ZDNjNmNjMWQvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "afb8c9d6-c24d-4242-a99f-201c8f411aa1" + "6e9f7ec1-1026-40b0-a9c7-53bb925f81d8" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.15.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" ] }, "ResponseBody": "", @@ -2565,28 +2138,28 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:27 GMT" + "Fri, 18 May 2018 22:23:18 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7276/providers/Microsoft.Sql/servers/sqlcrudtest-7378/jobAgents/agent/jobs/job1/executions/91d02598-ddac-4389-8cfa-8e0d01e4d2fa?api-version=2017-03-01-preview" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8293/providers/Microsoft.Sql/servers/sqlcrudtest-8803/jobAgents/agent/jobs/job1/executions/69b8c85a-02fb-4c10-9741-8526d3c6cc1d?api-version=2017-03-01-preview" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-request-id": [ - "2c0e85ea-2d58-4995-b9da-2d59df10b4fd" + "768ea278-a645-4b24-a5a7-52108e5fbe42" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], "x-ms-correlation-request-id": [ - "e2b8c979-4d08-44c2-83fc-1785c370a602" + "a7cde73c-635b-4f79-9aee-8d405cabe3e5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030927Z:e2b8c979-4d08-44c2-83fc-1785c370a602" + "WESTUS2:20180518T222318Z:a7cde73c-635b-4f79-9aee-8d405cabe3e5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2598,13 +2171,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8293?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "969a5928-112b-4b0c-b7ce-b975b6f89a51" + "330ffd29-919b-4f12-acff-548f3662f8dc" ], "accept-language": [ "en-US" @@ -2626,13 +2199,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:28 GMT" + "Fri, 18 May 2018 22:23:18 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDcyNzYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyOTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2641,13 +2214,13 @@ "14999" ], "x-ms-request-id": [ - "233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + "b1406337-5b11-4ff5-a450-4c3c506355e8" ], "x-ms-correlation-request-id": [ - "233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + "b1406337-5b11-4ff5-a450-4c3c506355e8" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030929Z:233f9b9a-6591-4ab4-b6a7-52d0e0b36f9c" + "WESTUS2:20180518T222318Z:b1406337-5b11-4ff5-a450-4c3c506355e8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2659,13 +2232,13 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7276?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTcyNzY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8293?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "80e7614c-6c19-46c2-ba9c-f5dd46cf4d10" + "acdc6560-55f2-4166-950d-945839c2db5d" ], "accept-language": [ "en-US" @@ -2687,13 +2260,13 @@ "no-cache" ], "Date": [ - "Fri, 18 May 2018 03:09:28 GMT" + "Fri, 18 May 2018 22:23:18 GMT" ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDcyNzYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyOTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -2702,13 +2275,13 @@ "14998" ], "x-ms-request-id": [ - "cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + "af2aa569-b3e8-4e78-833f-841e19a91d81" ], "x-ms-correlation-request-id": [ - "cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + "af2aa569-b3e8-4e78-833f-841e19a91d81" ], "x-ms-routing-request-id": [ - "WESTUS2:20180518T030929Z:cc150f7f-c03b-4ad2-81ad-c26a662a7a98" + "WESTUS2:20180518T222318Z:af2aa569-b3e8-4e78-833f-841e19a91d81" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2722,17 +2295,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-7276" + "sqlcrudtest-8293" ], "CreateServer": [ - "sqlcrudtest-7378" + "sqlcrudtest-8803" ], "TestStartStopGetJobExecution": [ - "sqlcrudtest-1280" + "sqlcrudtest-6372" ] }, "Variables": { - "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", - "DefaultLocation": "west us 2" + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" } } \ 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 5941ef96d589..e278f2814205 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/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs index 214f04431324..449a32002759 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs @@ -17,17 +17,6 @@ namespace Sql.Tests { public class SqlDatabaseAgentScenarioTests { - private string _subscriptionId; - - public SqlDatabaseAgentScenarioTests() - { - // Sort of a hacky way to grab the subscription id from the environment variables, but given that developer set their - // TEST_CSM_ORGID_AUTHENTICATION environment variable in this format then: - // SubscriptionId={SubId};ServicePrincipal={clientId};ServicePrincipalSecret={clientSecret};AADTenant={tenantId};Environment={env};HttpRecorderMode=Record; - // The below string split and getting the {SubId} should work. - this._subscriptionId = Environment.GetEnvironmentVariables()["TEST_CSM_ORGID_AUTHENTICATION"].ToString().Split(';')[0].Split('=')[1]; - } - /// /// Test end to end agent /// @@ -120,8 +109,8 @@ public void TestCreateUpdateDropJobCredential() // Create credential JobCredential credential = sqlClient.JobCredentials.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, SqlManagementTestUtilities.DefaultLogin, new JobCredential { - Username = "cloudsa", - Password = "Yukon900!" + Username = "a", + Password = "b!" }); @@ -194,7 +183,7 @@ public void TestCreateUpdateDropTargetGroup() { ServerName = "s1", Type = JobTargetType.SqlServer, - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, MembershipType = JobTargetGroupMembershipType.Include, } } @@ -210,7 +199,7 @@ public void TestCreateUpdateDropTargetGroup() { ServerName = "s1", Type = JobTargetType.SqlServer, - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, MembershipType = JobTargetGroupMembershipType.Include, }, // db target @@ -227,7 +216,7 @@ public void TestCreateUpdateDropTargetGroup() ShardMapName = "sm1", DatabaseName = "db1", ServerName = "s1", - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, Type = JobTargetType.SqlShardMap, MembershipType = JobTargetGroupMembershipType.Exclude, }, @@ -236,7 +225,7 @@ public void TestCreateUpdateDropTargetGroup() { ElasticPoolName = "ep1", ServerName = "s1", - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, Type = JobTargetType.SqlElasticPool, MembershipType = JobTargetGroupMembershipType.Exclude, }, @@ -364,8 +353,6 @@ public void TestCreateUpdateDropJobStep() Password = SqlManagementTestUtilities.DefaultPassword }); - - // Create target group JobTargetGroup targetGroup = sqlClient.JobTargetGroups.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, "tg1", new JobTargetGroup { @@ -376,7 +363,7 @@ public void TestCreateUpdateDropJobStep() { ServerName = server.Name, Type = JobTargetType.SqlServer, - RefreshCredential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + RefreshCredential = credential.Id, MembershipType = JobTargetGroupMembershipType.Include, } } @@ -396,12 +383,12 @@ public void TestCreateUpdateDropJobStep() // Create step with min params JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + Credential = credential.Id, Action = new JobStepAction { Value = "SELECT 1" }, - TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name) + TargetGroup = targetGroup.Id }); @@ -409,14 +396,14 @@ public void TestCreateUpdateDropJobStep() // Update step with max params step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + Credential = credential.Id, Action = new JobStepAction { Value = "SELECT 1", Source = "Inline", Type = "TSql" }, - TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name), + TargetGroup = targetGroup.Id, ExecutionOptions = new JobStepExecutionOptions { InitialRetryIntervalSeconds = 100, @@ -433,7 +420,7 @@ public void TestCreateUpdateDropJobStep() SchemaName = "dbo", TableName = "tbl", SubscriptionId = new Guid(), - Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + Credential = credential.Id, Type = JobTargetType.SqlDatabase } }); @@ -531,12 +518,12 @@ public void TestStartStopGetJobExecution() // Create job step JobStep step1 = sqlClient.JobSteps.CreateOrUpdate(resourceGroup.Name, server.Name, agent.Name, job1.Name, "step1", new JobStep { - Credential = FormatCredentialId(resourceGroup.Name, server.Name, agent.Name, credential.Name), + Credential = credential.Id, Action = new JobStepAction { Value = "SELECT 1" }, - TargetGroup = FormatTargetGroupId(resourceGroup.Name, server.Name, agent.Name, targetGroup.Name) + TargetGroup = targetGroup.Id }); @@ -577,25 +564,5 @@ public void TestStartStopGetJobExecution() } } } - - /// - /// Helper to format credential id string - /// - /// Refresh credential string - private string FormatCredentialId(string resourceGroupName, string serverName, string agentName, string credentialName) - { - return string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/jobAgents/{3}/credentials/{4}", - this._subscriptionId, resourceGroupName, serverName, agentName, credentialName); - } - - /// - /// Helper to format target group id string - /// - /// Refresh credential string - private string FormatTargetGroupId(string resourceGroupName, string serverName, string agentName, string targetGroupName) - { - return string.Format("/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Sql/servers/{2}/jobAgents/{3}/targetGroups/{4}", - this._subscriptionId, resourceGroupName, serverName, agentName, targetGroupName); - } } } \ No newline at end of file From 8b93e0403bf92b1a4266eff26cfd62ad355cdf2d Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Fri, 18 May 2018 17:15:40 -0700 Subject: [PATCH 08/10] Updating release notes to include the sql db agent type names --- .../Management.Sql/Microsoft.Azure.Management.Sql.csproj | 1 + 1 file changed, 1 insertion(+) 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 de5bcc651d9e..8aa6303aa0c2 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj +++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj @@ -13,6 +13,7 @@ From 77ab892b9a72c617284bbcebb3c9c389685af579 Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Mon, 21 May 2018 15:09:54 -0700 Subject: [PATCH 09/10] Regenerated from latest swagger readme.md from azure master as well as ran msbuild build.proj /t:build /p:Scope=SDs\SqlManagement --- ...bilityAssessmentRuleBaselinesOperations.cs | 711 +++++++++++ ...ssmentRuleBaselinesOperationsExtensions.cs | 196 +++ ...eVulnerabilityAssessmentScansOperations.cs | 1109 +++++++++++++++++ ...lityAssessmentScansOperationsExtensions.cs | 319 +++++ ...abaseVulnerabilityAssessmentsOperations.cs | 686 ++++++++++ ...rabilityAssessmentsOperationsExtensions.cs | 172 +++ ...bilityAssessmentRuleBaselinesOperations.cs | 130 ++ ...eVulnerabilityAssessmentScansOperations.cs | 206 +++ ...abaseVulnerabilityAssessmentsOperations.cs | 120 ++ .../IShortTermRetentionPoliciesOperations.cs | 189 +++ .../Generated/ISqlManagementClient.cs | 20 + .../Models/DatabaseVulnerabilityAssessment.cs | 83 ++ ...baseVulnerabilityAssessmentRuleBaseline.cs | 85 ++ ...VulnerabilityAssessmentRuleBaselineItem.cs | 70 ++ ...abaseVulnerabilityAssessmentScansExport.cs | 63 + .../Models/ShortTermRetentionPolicy.cs | 61 + ...ilityAssessmentRecurringScansProperties.cs | 76 ++ .../VulnerabilityAssessmentScanError.cs | 61 + .../VulnerabilityAssessmentScanRecord.cs | 124 ++ .../VulnerabilityAssessmentScanState.cs | 24 + .../VulnerabilityAssessmentScanTriggerType.cs | 22 + .../Generated/SdkInfo_SqlManagementClient.cs | 4 + .../ShortTermRetentionPoliciesOperations.cs | 761 +++++++++++ ...rmRetentionPoliciesOperationsExtensions.cs | 289 +++++ .../Generated/SqlManagementClient.cs | 24 + src/SDKs/_metadata/sql_resource-manager.txt | 8 +- 26 files changed, 5609 insertions(+), 4 deletions(-) create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs create mode 100644 src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs new file mode 100644 index 000000000000..24c1350e069b --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs @@ -0,0 +1,711 @@ +// +// 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; + + /// + /// DatabaseVulnerabilityAssessmentRuleBaselinesOperations operations. + /// + internal partial class DatabaseVulnerabilityAssessmentRuleBaselinesOperations : IServiceOperations, IDatabaseVulnerabilityAssessmentRuleBaselinesOperations + { + /// + /// Initializes a new instance of the DatabaseVulnerabilityAssessmentRuleBaselinesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatabaseVulnerabilityAssessmentRuleBaselinesOperations(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 database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// 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 serverName, string databaseName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (ruleId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ruleId"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string vulnerabilityAssessmentName = "default"; + string baselineName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("ruleId", ruleId); + tracingParameters.Add("baselineName", baselineName); + 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _url = _url.Replace("{ruleId}", System.Uri.EscapeDataString(ruleId)); + _url = _url.Replace("{baselineName}", System.Uri.EscapeDataString(baselineName)); + _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 database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// The requested rule baseline resource. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string ruleId, DatabaseVulnerabilityAssessmentRuleBaseline parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (ruleId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ruleId"); + } + 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 vulnerabilityAssessmentName = "default"; + string baselineName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("ruleId", ruleId); + tracingParameters.Add("baselineName", baselineName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _url = _url.Replace("{ruleId}", System.Uri.EscapeDataString(ruleId)); + _url = _url.Replace("{baselineName}", System.Uri.EscapeDataString(baselineName)); + _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) + { + 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; + } + + /// + /// Removes the database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (ruleId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ruleId"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string vulnerabilityAssessmentName = "default"; + string baselineName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("ruleId", ruleId); + tracingParameters.Add("baselineName", baselineName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _url = _url.Replace("{ruleId}", System.Uri.EscapeDataString(ruleId)); + _url = _url.Replace("{baselineName}", System.Uri.EscapeDataString(baselineName)); + _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) + { + 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; + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs new file mode 100644 index 000000000000..2056fb20b960 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs @@ -0,0 +1,196 @@ +// +// 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 DatabaseVulnerabilityAssessmentRuleBaselinesOperations. + /// + public static partial class DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions + { + /// + /// Gets a database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + public static DatabaseVulnerabilityAssessmentRuleBaseline Get(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName, ruleId).GetAwaiter().GetResult(); + } + + /// + /// Gets a database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, ruleId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// The requested rule baseline resource. + /// + public static DatabaseVulnerabilityAssessmentRuleBaseline CreateOrUpdate(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId, DatabaseVulnerabilityAssessmentRuleBaseline parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, ruleId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// The requested rule baseline resource. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId, DatabaseVulnerabilityAssessmentRuleBaseline parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, ruleId, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Removes the database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + public static void Delete(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId) + { + operations.DeleteAsync(resourceGroupName, serverName, databaseName, ruleId).GetAwaiter().GetResult(); + } + + /// + /// Removes the database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment rule + /// baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDatabaseVulnerabilityAssessmentRuleBaselinesOperations operations, string resourceGroupName, string serverName, string databaseName, string ruleId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, ruleId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs new file mode 100644 index 000000000000..9661d7a0c398 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs @@ -0,0 +1,1109 @@ +// +// 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; + + /// + /// DatabaseVulnerabilityAssessmentScansOperations operations. + /// + internal partial class DatabaseVulnerabilityAssessmentScansOperations : IServiceOperations, IDatabaseVulnerabilityAssessmentScansOperations + { + /// + /// Initializes a new instance of the DatabaseVulnerabilityAssessmentScansOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatabaseVulnerabilityAssessmentScansOperations(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 vulnerability assessment scan record of a 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// 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 serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (scanId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scanId"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string vulnerabilityAssessmentName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("scanId", scanId); + 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _url = _url.Replace("{scanId}", System.Uri.EscapeDataString(scanId)); + _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; + } + + /// + /// Executes a Vulnerability Assessment database scan. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task ExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExecuteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Lists the vulnerability assessment scans of a 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 server. + /// + /// + /// 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>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string vulnerabilityAssessmentName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _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; + } + + /// + /// Convert an existing scan result to a human readable format. If already + /// exists nothing happens + /// + /// + /// 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 server. + /// + /// + /// The name of the scanned database. + /// + /// + /// The vulnerability assessment scan Id. + /// + /// + /// 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> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (scanId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scanId"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string vulnerabilityAssessmentName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("scanId", scanId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Export", 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _url = _url.Replace("{scanId}", System.Uri.EscapeDataString(scanId)); + _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 != 201) + { + 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; + } + + /// + /// Executes a Vulnerability Assessment database scan. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// 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 BeginExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (scanId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scanId"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string vulnerabilityAssessmentName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("scanId", scanId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginExecute", 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _url = _url.Replace("{scanId}", System.Uri.EscapeDataString(scanId)); + _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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists the vulnerability assessment scans of a database. + /// + /// + /// 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>> ListByDatabaseNextWithHttpMessagesAsync(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, "ListByDatabaseNext", 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/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs new file mode 100644 index 000000000000..fc09dc8ec838 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs @@ -0,0 +1,319 @@ +// +// 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 DatabaseVulnerabilityAssessmentScansOperations. + /// + public static partial class DatabaseVulnerabilityAssessmentScansOperationsExtensions + { + /// + /// Gets a vulnerability assessment scan record of a 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + public static VulnerabilityAssessmentScanRecord Get(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult(); + } + + /// + /// Gets a vulnerability assessment scan record of a 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Executes a Vulnerability Assessment database scan. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + public static void Execute(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + { + operations.ExecuteAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult(); + } + + /// + /// Executes a Vulnerability Assessment database scan. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// The cancellation token. + /// + public static async Task ExecuteAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ExecuteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists the vulnerability assessment scans of a 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 server. + /// + /// + /// The name of the database. + /// + public static IPage ListByDatabase(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Lists the vulnerability assessment scans of a 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Convert an existing scan result to a human readable format. If already + /// exists nothing happens + /// + /// + /// 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 server. + /// + /// + /// The name of the scanned database. + /// + /// + /// The vulnerability assessment scan Id. + /// + public static DatabaseVulnerabilityAssessmentScansExport Export(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + { + return operations.ExportAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult(); + } + + /// + /// Convert an existing scan result to a human readable format. If already + /// exists nothing happens + /// + /// + /// 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 server. + /// + /// + /// The name of the scanned database. + /// + /// + /// The vulnerability assessment scan Id. + /// + /// + /// The cancellation token. + /// + public static async Task ExportAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Executes a Vulnerability Assessment database scan. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + public static void BeginExecute(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId) + { + operations.BeginExecuteAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult(); + } + + /// + /// Executes a Vulnerability Assessment database scan. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// The cancellation token. + /// + public static async Task BeginExecuteAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginExecuteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists the vulnerability assessment scans of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByDatabaseNext(this IDatabaseVulnerabilityAssessmentScansOperations operations, string nextPageLink) + { + return operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists the vulnerability assessment scans of a database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByDatabaseNextAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs new file mode 100644 index 000000000000..ac7738e45303 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperations.cs @@ -0,0 +1,686 @@ +// +// 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; + + /// + /// DatabaseVulnerabilityAssessmentsOperations operations. + /// + internal partial class DatabaseVulnerabilityAssessmentsOperations : IServiceOperations, IDatabaseVulnerabilityAssessmentsOperations + { + /// + /// Initializes a new instance of the DatabaseVulnerabilityAssessmentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatabaseVulnerabilityAssessmentsOperations(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 the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + /// + /// 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 serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string vulnerabilityAssessmentName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _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 the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + /// + /// The requested resource. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseVulnerabilityAssessment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + 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 vulnerabilityAssessmentName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _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) + { + 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; + } + + /// + /// Removes the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + /// + /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string vulnerabilityAssessmentName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName)); + _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) + { + 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; + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs new file mode 100644 index 000000000000..264fd66ee33c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs @@ -0,0 +1,172 @@ +// +// 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 DatabaseVulnerabilityAssessmentsOperations. + /// + public static partial class DatabaseVulnerabilityAssessmentsOperationsExtensions + { + /// + /// Gets the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + public static DatabaseVulnerabilityAssessment Get(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + /// + /// The requested resource. + /// + public static DatabaseVulnerabilityAssessment CreateOrUpdate(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseVulnerabilityAssessment parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + /// + /// The requested resource. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseVulnerabilityAssessment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Removes the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + public static void Delete(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName) + { + operations.DeleteAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Removes the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is defined. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDatabaseVulnerabilityAssessmentsOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs new file mode 100644 index 000000000000..a91d62d5fb85 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs @@ -0,0 +1,130 @@ +// +// 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; + + /// + /// DatabaseVulnerabilityAssessmentRuleBaselinesOperations operations. + /// + public partial interface IDatabaseVulnerabilityAssessmentRuleBaselinesOperations + { + /// + /// Gets a database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment + /// rule baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// 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 serverName, string databaseName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a database's vulnerability assessment rule + /// baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment + /// rule baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// The requested rule baseline resource. + /// + /// + /// 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 serverName, string databaseName, string ruleId, DatabaseVulnerabilityAssessmentRuleBaseline parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Removes the database's vulnerability assessment rule baseline. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment + /// rule baseline is defined. + /// + /// + /// The vulnerability assessment rule ID. + /// + /// + /// 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 serverName, string databaseName, string ruleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs new file mode 100644 index 000000000000..1556a97386f9 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs @@ -0,0 +1,206 @@ +// +// 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; + + /// + /// DatabaseVulnerabilityAssessmentScansOperations operations. + /// + public partial interface IDatabaseVulnerabilityAssessmentScansOperations + { + /// + /// Gets a vulnerability assessment scan record of a 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// 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 serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Executes a Vulnerability Assessment database scan. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// 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 ExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the vulnerability assessment scans of a 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 server. + /// + /// + /// 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>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Convert an existing scan result to a human readable format. If + /// already exists nothing happens + /// + /// + /// 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 server. + /// + /// + /// The name of the scanned database. + /// + /// + /// The vulnerability assessment scan Id. + /// + /// + /// 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> ExportWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Executes a Vulnerability Assessment database scan. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The vulnerability assessment scan Id of the scan to retrieve. + /// + /// + /// 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 BeginExecuteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists the vulnerability assessment scans of a database. + /// + /// + /// 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>> ListByDatabaseNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs new file mode 100644 index 000000000000..1e4aa09b2be5 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs @@ -0,0 +1,120 @@ +// +// 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; + + /// + /// DatabaseVulnerabilityAssessmentsOperations operations. + /// + public partial interface IDatabaseVulnerabilityAssessmentsOperations + { + /// + /// Gets the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is + /// defined. + /// + /// + /// 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 serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is + /// defined. + /// + /// + /// The requested resource. + /// + /// + /// 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 serverName, string databaseName, DatabaseVulnerabilityAssessment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Removes the database's vulnerability assessment. + /// + /// + /// 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 server. + /// + /// + /// The name of the database for which the vulnerability assessment is + /// defined. + /// + /// + /// 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 serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs new file mode 100644 index 000000000000..a3ec91ba4f89 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IShortTermRetentionPoliciesOperations.cs @@ -0,0 +1,189 @@ +// +// 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; + + /// + /// ShortTermRetentionPoliciesOperations operations. + /// + public partial interface IShortTermRetentionPoliciesOperations + { + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// 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 serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// 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 serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// 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 serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// 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 serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// 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 serverName, string databaseName, ShortTermRetentionPolicy parameters, 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 3467f110e768..1dcc752ace6e 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ISqlManagementClient.cs @@ -241,6 +241,16 @@ public partial interface ISqlManagementClient : System.IDisposable /// IVirtualNetworkRulesOperations VirtualNetworkRules { get; } + /// + /// Gets the IDatabaseVulnerabilityAssessmentRuleBaselinesOperations. + /// + IDatabaseVulnerabilityAssessmentRuleBaselinesOperations DatabaseVulnerabilityAssessmentRuleBaselines { get; } + + /// + /// Gets the IDatabaseVulnerabilityAssessmentsOperations. + /// + IDatabaseVulnerabilityAssessmentsOperations DatabaseVulnerabilityAssessments { get; } + /// /// Gets the IJobAgentsOperations. /// @@ -331,10 +341,20 @@ public partial interface ISqlManagementClient : System.IDisposable /// ICapabilitiesOperations Capabilities { get; } + /// + /// Gets the IDatabaseVulnerabilityAssessmentScansOperations. + /// + IDatabaseVulnerabilityAssessmentScansOperations DatabaseVulnerabilityAssessmentScans { get; } + /// /// Gets the IInstanceFailoverGroupsOperations. /// IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; } + /// + /// Gets the IShortTermRetentionPoliciesOperations. + /// + IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; } + } } diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs new file mode 100644 index 000000000000..7c06d83df98d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessment.cs @@ -0,0 +1,83 @@ +// +// 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.Linq; + + /// + /// A database vulnerability assessment. + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabaseVulnerabilityAssessment : ProxyResource + { + /// + /// Initializes a new instance of the DatabaseVulnerabilityAssessment + /// class. + /// + public DatabaseVulnerabilityAssessment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseVulnerabilityAssessment + /// class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// A blob storage container path to + /// hold the scan results (e.g. + /// https://myStorage.blob.core.windows.net/VaScans/). + /// A shared access signature (SAS + /// Key) that has write access to the blob container specified in + /// 'storageContainerPath' parameter. + /// The recurring scans settings + public DatabaseVulnerabilityAssessment(string id = default(string), string name = default(string), string type = default(string), string storageContainerPath = default(string), string storageContainerSasKey = default(string), VulnerabilityAssessmentRecurringScansProperties recurringScans = default(VulnerabilityAssessmentRecurringScansProperties)) + : base(id, name, type) + { + StorageContainerPath = storageContainerPath; + StorageContainerSasKey = storageContainerSasKey; + RecurringScans = recurringScans; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a blob storage container path to hold the scan results + /// (e.g. https://myStorage.blob.core.windows.net/VaScans/). + /// + [JsonProperty(PropertyName = "properties.storageContainerPath")] + public string StorageContainerPath { get; set; } + + /// + /// Gets or sets a shared access signature (SAS Key) that has write + /// access to the blob container specified in 'storageContainerPath' + /// parameter. + /// + [JsonProperty(PropertyName = "properties.storageContainerSasKey")] + public string StorageContainerSasKey { get; set; } + + /// + /// Gets or sets the recurring scans settings + /// + [JsonProperty(PropertyName = "properties.recurringScans")] + public VulnerabilityAssessmentRecurringScansProperties RecurringScans { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs new file mode 100644 index 000000000000..c986ecdc847f --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// 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 database vulnerability assessment rule baseline. + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabaseVulnerabilityAssessmentRuleBaseline : ProxyResource + { + /// + /// Initializes a new instance of the + /// DatabaseVulnerabilityAssessmentRuleBaseline class. + /// + public DatabaseVulnerabilityAssessmentRuleBaseline() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DatabaseVulnerabilityAssessmentRuleBaseline class. + /// + /// The rule baseline result + /// Resource ID. + /// Resource name. + /// Resource type. + public DatabaseVulnerabilityAssessmentRuleBaseline(IList baselineResults, string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + BaselineResults = baselineResults; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the rule baseline result + /// + [JsonProperty(PropertyName = "properties.baselineResults")] + public IList BaselineResults { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (BaselineResults == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "BaselineResults"); + } + if (BaselineResults != null) + { + foreach (var element in BaselineResults) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs new file mode 100644 index 000000000000..0b771e41c74b --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs @@ -0,0 +1,70 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Properties for an Azure SQL Database Vulnerability Assessment rule + /// baseline's result. + /// + public partial class DatabaseVulnerabilityAssessmentRuleBaselineItem + { + /// + /// Initializes a new instance of the + /// DatabaseVulnerabilityAssessmentRuleBaselineItem class. + /// + public DatabaseVulnerabilityAssessmentRuleBaselineItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DatabaseVulnerabilityAssessmentRuleBaselineItem class. + /// + /// The rule baseline result + public DatabaseVulnerabilityAssessmentRuleBaselineItem(IList result) + { + Result = result; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the rule baseline result + /// + [JsonProperty(PropertyName = "result")] + public IList Result { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Result == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Result"); + } + } + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs new file mode 100644 index 000000000000..3079732cb63c --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A database Vulnerability Assessment scan export resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabaseVulnerabilityAssessmentScansExport : ProxyResource + { + /// + /// Initializes a new instance of the + /// DatabaseVulnerabilityAssessmentScansExport class. + /// + public DatabaseVulnerabilityAssessmentScansExport() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DatabaseVulnerabilityAssessmentScansExport class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// Location of the exported + /// report (e.g. + /// https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + public DatabaseVulnerabilityAssessmentScansExport(string id = default(string), string name = default(string), string type = default(string), string exportedReportLocation = default(string)) + : base(id, name, type) + { + ExportedReportLocation = exportedReportLocation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets location of the exported report (e.g. + /// https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + /// + [JsonProperty(PropertyName = "properties.exportedReportLocation")] + public string ExportedReportLocation { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.cs new file mode 100644 index 000000000000..608ac03e2765 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ShortTermRetentionPolicy.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 Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A short term retention policy resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class ShortTermRetentionPolicy : ProxyResource + { + /// + /// Initializes a new instance of the ShortTermRetentionPolicy class. + /// + public ShortTermRetentionPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ShortTermRetentionPolicy class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The backup retention period in days. + /// This is how many days Point-in-Time Restore will be + /// supported. + public ShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) + : base(id, name, type) + { + RetentionDays = retentionDays; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the backup retention period in days. This is how many + /// days Point-in-Time Restore will be supported. + /// + [JsonProperty(PropertyName = "properties.retentionDays")] + public int? RetentionDays { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs new file mode 100644 index 000000000000..94b0e00b39ab --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentRecurringScansProperties.cs @@ -0,0 +1,76 @@ +// +// 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.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Properties of a Vulnerability Assessment recurring scans. + /// + public partial class VulnerabilityAssessmentRecurringScansProperties + { + /// + /// Initializes a new instance of the + /// VulnerabilityAssessmentRecurringScansProperties class. + /// + public VulnerabilityAssessmentRecurringScansProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VulnerabilityAssessmentRecurringScansProperties class. + /// + /// Recurring scans state. + /// Specifies that the schedule + /// scan notification will be is sent to the subscription + /// administrators. + /// Specifies an array of e-mail addresses to + /// which the scan notification is sent. + public VulnerabilityAssessmentRecurringScansProperties(bool? isEnabled = default(bool?), bool? emailSubscriptionAdmins = default(bool?), IList emails = default(IList)) + { + IsEnabled = isEnabled; + EmailSubscriptionAdmins = emailSubscriptionAdmins; + Emails = emails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets recurring scans state. + /// + [JsonProperty(PropertyName = "isEnabled")] + public bool? IsEnabled { get; set; } + + /// + /// Gets or sets specifies that the schedule scan notification will be + /// is sent to the subscription administrators. + /// + [JsonProperty(PropertyName = "emailSubscriptionAdmins")] + public bool? EmailSubscriptionAdmins { get; set; } + + /// + /// Gets or sets specifies an array of e-mail addresses to which the + /// scan notification is sent. + /// + [JsonProperty(PropertyName = "emails")] + public IList Emails { get; set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.cs new file mode 100644 index 000000000000..d381ce53ff14 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanError.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; + + /// + /// Properties of a vulnerability assessment scan error. + /// + public partial class VulnerabilityAssessmentScanError + { + /// + /// Initializes a new instance of the VulnerabilityAssessmentScanError + /// class. + /// + public VulnerabilityAssessmentScanError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VulnerabilityAssessmentScanError + /// class. + /// + /// The error code. + /// The error message. + public VulnerabilityAssessmentScanError(string code = default(string), string message = default(string)) + { + Code = code; + Message = message; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the error code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; private set; } + + /// + /// Gets the error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs new file mode 100644 index 000000000000..298f1c24a1f8 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanRecord.cs @@ -0,0 +1,124 @@ +// +// 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 vulnerability assessment scan record. + /// + [Rest.Serialization.JsonTransformation] + public partial class VulnerabilityAssessmentScanRecord : ProxyResource + { + /// + /// Initializes a new instance of the VulnerabilityAssessmentScanRecord + /// class. + /// + public VulnerabilityAssessmentScanRecord() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VulnerabilityAssessmentScanRecord + /// class. + /// + /// Resource ID. + /// Resource name. + /// Resource type. + /// The scan ID. + /// The scan trigger type. Possible values + /// include: 'OnDemand', 'Recurring' + /// The scan status. Possible values include: + /// 'Passed', 'Failed', 'FailedToRun', 'InProgress' + /// The scan start time (UTC). + /// The scan end time (UTC). + /// The scan errors. + /// The scan results storage + /// container path. + /// The number of failed + /// security checks. + public VulnerabilityAssessmentScanRecord(string id = default(string), string name = default(string), string type = default(string), string scanId = default(string), string triggerType = default(string), string state = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList errors = default(IList), string storageContainerPath = default(string), int? numberOfFailedSecurityChecks = default(int?)) + : base(id, name, type) + { + ScanId = scanId; + TriggerType = triggerType; + State = state; + StartTime = startTime; + EndTime = endTime; + Errors = errors; + StorageContainerPath = storageContainerPath; + NumberOfFailedSecurityChecks = numberOfFailedSecurityChecks; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the scan ID. + /// + [JsonProperty(PropertyName = "properties.scanId")] + public string ScanId { get; private set; } + + /// + /// Gets the scan trigger type. Possible values include: 'OnDemand', + /// 'Recurring' + /// + [JsonProperty(PropertyName = "properties.triggerType")] + public string TriggerType { get; private set; } + + /// + /// Gets the scan status. Possible values include: 'Passed', 'Failed', + /// 'FailedToRun', 'InProgress' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Gets the scan start time (UTC). + /// + [JsonProperty(PropertyName = "properties.startTime")] + public System.DateTime? StartTime { get; private set; } + + /// + /// Gets the scan end time (UTC). + /// + [JsonProperty(PropertyName = "properties.endTime")] + public System.DateTime? EndTime { get; private set; } + + /// + /// Gets the scan errors. + /// + [JsonProperty(PropertyName = "properties.errors")] + public IList Errors { get; private set; } + + /// + /// Gets the scan results storage container path. + /// + [JsonProperty(PropertyName = "properties.storageContainerPath")] + public string StorageContainerPath { get; private set; } + + /// + /// Gets the number of failed security checks. + /// + [JsonProperty(PropertyName = "properties.numberOfFailedSecurityChecks")] + public int? NumberOfFailedSecurityChecks { get; private set; } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs new file mode 100644 index 000000000000..503c61895227 --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanState.cs @@ -0,0 +1,24 @@ +// +// 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 VulnerabilityAssessmentScanState. + /// + public static class VulnerabilityAssessmentScanState + { + public const string Passed = "Passed"; + public const string Failed = "Failed"; + public const string FailedToRun = "FailedToRun"; + public const string InProgress = "InProgress"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.cs new file mode 100644 index 000000000000..252a76bff40a --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/VulnerabilityAssessmentScanTriggerType.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 VulnerabilityAssessmentScanTriggerType. + /// + public static class VulnerabilityAssessmentScanTriggerType + { + public const string OnDemand = "OnDemand"; + public const string Recurring = "Recurring"; + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs index 60816295aed7..f99851fd90a8 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs @@ -28,6 +28,9 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "DatabaseOperations", "2017-10-01-preview"), new Tuple("Sql", "DatabaseThreatDetectionPolicies", "2014-04-01"), new Tuple("Sql", "DatabaseUsages", "2014-04-01"), + new Tuple("Sql", "DatabaseVulnerabilityAssessmentRuleBaselines", "2017-03-01-preview"), + new Tuple("Sql", "DatabaseVulnerabilityAssessmentScans", "2017-10-01-preview"), + new Tuple("Sql", "DatabaseVulnerabilityAssessments", "2017-03-01-preview"), new Tuple("Sql", "Databases", "2014-04-01"), new Tuple("Sql", "Databases", "2017-10-01-preview"), new Tuple("Sql", "ElasticPoolActivities", "2014-04-01"), @@ -69,6 +72,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "Servers", "2015-05-01-preview"), new Tuple("Sql", "ServiceObjectives", "2014-04-01"), new Tuple("Sql", "ServiceTierAdvisors", "2014-04-01"), + new Tuple("Sql", "ShortTermRetentionPolicies", "2017-10-01-preview"), new Tuple("Sql", "SubscriptionUsages", "2015-05-01-preview"), new Tuple("Sql", "SyncAgents", "2015-05-01-preview"), new Tuple("Sql", "SyncGroups", "2015-05-01-preview"), diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs new file mode 100644 index 000000000000..ee8c84b7e6dd --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperations.cs @@ -0,0 +1,761 @@ +// +// 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; + + /// + /// ShortTermRetentionPoliciesOperations operations. + /// + internal partial class ShortTermRetentionPoliciesOperations : IServiceOperations, IShortTermRetentionPoliciesOperations + { + /// + /// Initializes a new instance of the ShortTermRetentionPoliciesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ShortTermRetentionPoliciesOperations(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 database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// 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 serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string policyName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("policyName", policyName); + 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/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName)); + _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; + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// 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 serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + 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 policyName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("policyName", policyName); + 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/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName)); + _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 != 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; + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// 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 serverName, string databaseName, ShortTermRetentionPolicy parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + 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 policyName = "default"; + 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("serverName", serverName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("policyName", policyName); + 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/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{policyName}", System.Uri.EscapeDataString(policyName)); + _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; + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs new file mode 100644 index 000000000000..f67551b3a49d --- /dev/null +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/ShortTermRetentionPoliciesOperationsExtensions.cs @@ -0,0 +1,289 @@ +// +// 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 ShortTermRetentionPoliciesOperations. + /// + public static partial class ShortTermRetentionPoliciesOperationsExtensions + { + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + public static ShortTermRetentionPolicy Get(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + public static ShortTermRetentionPolicy CreateOrUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + public static ShortTermRetentionPolicy Update(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.UpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + public static ShortTermRetentionPolicy BeginCreateOrUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + public static ShortTermRetentionPolicy BeginUpdate(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database's short term retention policy. + /// + /// + /// 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 server. + /// + /// + /// The name of the database. + /// + /// + /// The short term retention policy info. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IShortTermRetentionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, ShortTermRetentionPolicy parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs index 56f37bfed691..9e5ff66ba2ac 100644 --- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs +++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs @@ -246,6 +246,16 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IVirtualNetworkRulesOperations VirtualNetworkRules { get; private set; } + /// + /// Gets the IDatabaseVulnerabilityAssessmentRuleBaselinesOperations. + /// + public virtual IDatabaseVulnerabilityAssessmentRuleBaselinesOperations DatabaseVulnerabilityAssessmentRuleBaselines { get; private set; } + + /// + /// Gets the IDatabaseVulnerabilityAssessmentsOperations. + /// + public virtual IDatabaseVulnerabilityAssessmentsOperations DatabaseVulnerabilityAssessments { get; private set; } + /// /// Gets the IJobAgentsOperations. /// @@ -336,11 +346,21 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual ICapabilitiesOperations Capabilities { get; private set; } + /// + /// Gets the IDatabaseVulnerabilityAssessmentScansOperations. + /// + public virtual IDatabaseVulnerabilityAssessmentScansOperations DatabaseVulnerabilityAssessmentScans { get; private set; } + /// /// Gets the IInstanceFailoverGroupsOperations. /// public virtual IInstanceFailoverGroupsOperations InstanceFailoverGroups { get; private set; } + /// + /// Gets the IShortTermRetentionPoliciesOperations. + /// + public virtual IShortTermRetentionPoliciesOperations ShortTermRetentionPolicies { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// @@ -577,6 +597,8 @@ private void Initialize() SyncMembers = new SyncMembersOperations(this); SubscriptionUsages = new SubscriptionUsagesOperations(this); VirtualNetworkRules = new VirtualNetworkRulesOperations(this); + DatabaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesOperations(this); + DatabaseVulnerabilityAssessments = new DatabaseVulnerabilityAssessmentsOperations(this); JobAgents = new JobAgentsOperations(this); JobCredentials = new JobCredentialsOperations(this); JobExecutions = new JobExecutionsOperations(this); @@ -595,7 +617,9 @@ private void Initialize() DatabaseOperations = new DatabaseOperations(this); ElasticPoolOperations = new ElasticPoolOperations(this); Capabilities = new CapabilitiesOperations(this); + DatabaseVulnerabilityAssessmentScans = new DatabaseVulnerabilityAssessmentScansOperations(this); InstanceFailoverGroups = new InstanceFailoverGroupsOperations(this); + ShortTermRetentionPolicies = new ShortTermRetentionPoliciesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt index eb30787ba0c2..aae4168d9c80 100644 --- a/src/SDKs/_metadata/sql_resource-manager.txt +++ b/src/SDKs/_metadata/sql_resource-manager.txt @@ -1,12 +1,12 @@ Type dsc to start/install the DS Consolidated Console -2018-05-17 21:57:39 UTC +2018-05-21 20:53:08 UTC 1) azure-rest-api-specs repository information -GitHub user: johnpaulkee -Branch: jobsSdk -Commit: 992e3dd8dfe722697d045458f827e9d554ef6ebb +GitHub user: Azure +Branch: master +Commit: c6fea13a449c7e60d515759d687f18c9079c8522 2) AutoRest information Requested version: latest From dbb8d1181941ba3f424e5d24257267208c33d3bc Mon Sep 17 00:00:00 2001 From: John Paul Kee Date: Mon, 21 May 2018 17:47:00 -0700 Subject: [PATCH 10/10] Renaming to Elastic job agent with re-recorded tests --- ...sts.cs => ElasticJobAgentScenarioTests.cs} | 7 +- .../TestCreateUpdateDropAgent.json | 2037 ++++++++++++++ .../TestCreateUpdateDropJob.json | 1781 ++++++++++++ .../TestCreateUpdateDropJobCredential.json | 1598 +++++++++++ .../TestCreateUpdateDropJobStep.json | 1982 +++++++++++++ .../TestCreateUpdateDropTargetGroup.json | 1787 ++++++++++++ .../TestStartStopGetJobExecution.json | 2494 +++++++++++++++++ 7 files changed, 11680 insertions(+), 6 deletions(-) rename src/SDKs/SqlManagement/Sql.Tests/{SqlDatabaseAgentScenarioTests.cs => ElasticJobAgentScenarioTests.cs} (99%) create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropAgent.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJob.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobCredential.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobStep.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropTargetGroup.json create mode 100644 src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestStartStopGetJobExecution.json diff --git a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs b/src/SDKs/SqlManagement/Sql.Tests/ElasticJobAgentScenarioTests.cs similarity index 99% rename from src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs rename to src/SDKs/SqlManagement/Sql.Tests/ElasticJobAgentScenarioTests.cs index 449a32002759..af3f10024336 100644 --- a/src/SDKs/SqlManagement/Sql.Tests/SqlDatabaseAgentScenarioTests.cs +++ b/src/SDKs/SqlManagement/Sql.Tests/ElasticJobAgentScenarioTests.cs @@ -2,20 +2,15 @@ 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 Microsoft.Rest.ClientRuntime.Azure.TestFramework; using System; using System.Collections.Generic; using System.Linq; -using System.Net; -using System.Threading; -using System.Threading.Tasks; using Xunit; namespace Sql.Tests { - public class SqlDatabaseAgentScenarioTests + public class ElasticJobAgentScenarioTests { /// /// Test end to end agent diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropAgent.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropAgent.json new file mode 100644 index 000000000000..08edc7acc215 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropAgent.json @@ -0,0 +1,2037 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-5716?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU3MTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5716\": \"2018-05-22 00:28:32Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "40bcacf0-9180-4432-8ddc-c9e03df7df7d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716\",\r\n \"name\": \"sqlcrudtest-5716\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-5716\": \"2018-05-22 00:28:32Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "b4b000d5-1457-4744-980d-10d4edc1d893" + ], + "x-ms-correlation-request-id": [ + "b4b000d5-1457-4744-980d-10d4edc1d893" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002833Z:b4b000d5-1457-4744-980d-10d4edc1d893" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "e997444d-2ef2-4499-914d-f9438c99c0e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:28:35.77Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverOperationResults/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "b3ff17c0-951e-4866-87e8-eefc07303e49" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "3520c820-0fc7-48df-bef2-a74155fd2fe5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002835Z:3520c820-0fc7-48df-bef2-a74155fd2fe5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iM2ZmMTdjMC05NTFlLTQ4NjYtODdlOC1lZWZjMDczMDNlNDk/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b3ff17c0-951e-4866-87e8-eefc07303e49\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:28:35.77Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5e3125b1-0e67-4baf-925f-4b4452143a75" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "25cca5c8-9b25-4c89-b61d-5657a50c033b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002846Z:25cca5c8-9b25-4c89-b61d-5657a50c033b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iM2ZmMTdjMC05NTFlLTQ4NjYtODdlOC1lZWZjMDczMDNlNDk/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b3ff17c0-951e-4866-87e8-eefc07303e49\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:28:35.77Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4437d365-3447-4a48-b42e-61e5df9324fc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "ec26e30d-fbfc-4c3d-8430-2418c0c373b0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002906Z:ec26e30d-fbfc-4c3d-8430-2418c0c373b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/b3ff17c0-951e-4866-87e8-eefc07303e49?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9iM2ZmMTdjMC05NTFlLTQ4NjYtODdlOC1lZWZjMDczMDNlNDk/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b3ff17c0-951e-4866-87e8-eefc07303e49\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:28:35.77Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "63556947-b229-4317-a8cd-21b4433fec38" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "0ca46909-645b-47ab-b8fa-c14293aa3748" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002926Z:0ca46909-645b-47ab-b8fa-c14293aa3748" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-1134.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134\",\r\n \"name\": \"sqlcrudtest-1134\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "54fea576-5887-4fef-96ca-324d236c2e8d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "28ea8919-473c-4d34-9039-a9106e258a57" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002926Z:28ea8919-473c-4d34-9039-a9106e258a57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02ODIzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "c70d1e0b-f9da-48e0-9926-6fa5f9caeb89" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "7deb8403-cfda-46ff-a893-c62e631436e0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "3748a24b-f4d6-4832-8131-ae7c8bac5ec7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002927Z:3748a24b-f4d6-4832-8131-ae7c8bac5ec7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a36119df-1c40-4405-9a96-c4d217e71f1f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "d20460f1-ffec-4013-adfe-f8e250a46e01" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002942Z:d20460f1-ffec-4013-adfe-f8e250a46e01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:29:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ac507365-d76f-468e-84d9-d5cdb1f9a391" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "b27e5c12-b4b8-4434-971b-301aa9cf6884" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002957Z:b27e5c12-b4b8-4434-971b-301aa9cf6884" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e320e760-8124-48d6-8918-cd21923b4f17" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "32d9b1af-e6bb-4235-98fb-dde54f43590d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003012Z:32d9b1af-e6bb-4235-98fb-dde54f43590d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9b215542-6083-40db-a0c3-1ced35d91202" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "8e39c5da-9fdb-405b-9f44-f612e687eac2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003027Z:8e39c5da-9fdb-405b-9f44-f612e687eac2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8cbf0aa6-847c-446b-8928-22dec1f9c1f0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "0a89f078-28cf-4598-8698-34c1a0441be4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003042Z:0a89f078-28cf-4598-8698-34c1a0441be4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/078efefe-d005-4c55-95f8-0f49993b051e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzA3OGVmZWZlLWQwMDUtNGM1NS05NWY4LTBmNDk5OTNiMDUxZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"078efefe-d005-4c55-95f8-0f49993b051e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:29:27.34Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "358ce7d0-cb82-4109-8058-c2d84e221030" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "c4a6d75f-75b3-4362-9a7d-f3095f8f1892" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003057Z:c4a6d75f-75b3-4362-9a7d-f3095f8f1892" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC02ODIzP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"72550b5e-d610-4a4b-b5af-f96fee3af393\",\r\n \"creationDate\": \"2018-05-22T00:29:27.777Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-22T01:00:56.347Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"name\": \"sqlcrudtest-6823\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "78bd0662-56be-427b-8cc7-61f27ad6c3c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "bd712024-e08a-4dd4-bdf6-b16b0c76ecd2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003058Z:bd712024-e08a-4dd4-bdf6-b16b0c76ecd2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "af7291ee-7ec3-46a2-9e3d-00954e4445e8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:30:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "47a137ae-0a7e-4ecd-865d-d79593b68341" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "5da0f5b3-26c1-48a8-9589-cb05b904f09e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003058Z:5da0f5b3-26c1-48a8-9589-cb05b904f09e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\"\r\n },\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "282" + ], + "x-ms-client-request-id": [ + "3ef1ffb3-73b3-41b6-a6a2-9232c973de41" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:32:44.887Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/4d518887-ea3d-480e-b6f9-0450830f3f45?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/4d518887-ea3d-480e-b6f9-0450830f3f45?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "a3dd3988-134a-4dbd-b919-6b05ada9b2c1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "e6c4c75c-b199-4352-9485-b600ded08c25" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003246Z:e6c4c75c-b199-4352-9485-b600ded08c25" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:31:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f05bc805-85e0-4e3b-8e0f-f7f54facc5d0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "f5e6a54b-cd89-462b-8e5f-324b575833b4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003113Z:f5e6a54b-cd89-462b-8e5f-324b575833b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:31:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4ccc3607-cb2d-4677-ac9b-c9278bc2c48c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "db3ce9ee-f2c6-4ac9-98ca-8a05d8ab3656" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003128Z:db3ce9ee-f2c6-4ac9-98ca-8a05d8ab3656" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:31:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3ae4461a-5c26-4f0f-954e-848dc6983364" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "3469b6c7-a589-40ca-bc85-35faa6287c6d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003143Z:3469b6c7-a589-40ca-bc85-35faa6287c6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:31:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f719dfd9-c322-4569-9017-bfbfbcf77717" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "fd9b0e42-f12f-4501-8368-b0bbfc79c6a1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003158Z:fd9b0e42-f12f-4501-8368-b0bbfc79c6a1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "de1f1769-b642-4b42-a014-2dc38da66079" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "1c21a2e0-3829-4a54-bfd4-e2ff6cb018fd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003213Z:1c21a2e0-3829-4a54-bfd4-e2ff6cb018fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c4df0cfd-50dc-48a4-aa3e-5f0edca8d982" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "c9c5cde9-a1e9-4575-8878-ab47d53b2fc7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003228Z:c9c5cde9-a1e9-4575-8878-ab47d53b2fc7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/cc854e5e-de86-4fab-92e1-c8ebf5fa2a86?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uL2NjODU0ZTVlLWRlODYtNGZhYi05MmUxLWM4ZWJmNWZhMmE4Nj9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cc854e5e-de86-4fab-92e1-c8ebf5fa2a86\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:30:58.557Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e01c9ab0-cf3e-441e-84bc-e54ba387a2ce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "c4189aac-ee67-4a21-b582-00a0302dc5e5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003244Z:c4189aac-ee67-4a21-b582-00a0302dc5e5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:32:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d87a04b1-9623-4c90-9123-f704a45dc270" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "967c244a-dda6-4276-a132-e14bc3031009" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003244Z:967c244a-dda6-4276-a132-e14bc3031009" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "604f049d-67e8-426d-95e4-7c99fc7907cf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "1e722edf-248e-4d81-a9bf-0d2e158e3eda" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003301Z:1e722edf-248e-4d81-a9bf-0d2e158e3eda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d991fe2d-4629-4b18-aa6d-8656f9a5d16c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2e680bd9-d53b-4998-90d1-fd2e511b8a3b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "26f0f2a4-14e2-41cd-84b5-8b33995a9d6e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003301Z:26f0f2a4-14e2-41cd-84b5-8b33995a9d6e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/4d518887-ea3d-480e-b6f9-0450830f3f45?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzRkNTE4ODg3LWVhM2QtNDgwZS1iNmY5LTA0NTA4MzBmM2Y0NT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"4d518887-ea3d-480e-b6f9-0450830f3f45\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:32:44.887Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "8cf075c1-198d-4276-ad43-dc29a4de92cf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "0c977c30-32ae-4165-ba95-a551fdb726a7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003301Z:0c977c30-32ae-4165-ba95-a551fdb726a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "58a4710d-7df9-40ff-9c0d-faa0304d9d48" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/databases/sqlcrudtest-6823\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"tagKey1\": \"TagValue1\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1\",\r\n \"name\": \"agent1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7ef272ce-40d8-4fa7-9aab-1d4d42890b72" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "73501c39-71cf-41a5-9b79-590e9d38bee4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003302Z:73501c39-71cf-41a5-9b79-590e9d38bee4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/servers/sqlcrudtest-1134/jobAgents/agent1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0xMTM0L2pvYkFnZW50cy9hZ2VudDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "95621446-0031-4b3c-ab30-61d8774405ca" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"DeleteJobAccount\",\r\n \"startTime\": \"2018-05-22T00:33:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/6bbe858e-511f-4a6e-9f04-7a5c60e0acf4?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/6bbe858e-511f-4a6e-9f04-7a5c60e0acf4?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "7a9bed35-1605-426f-98cd-71fe16cc488f" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "2144f7c0-cac4-477c-b6e6-96a6729811ff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003302Z:2144f7c0-cac4-477c-b6e6-96a6729811ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-5716/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/6bbe858e-511f-4a6e-9f04-7a5c60e0acf4?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTU3MTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzZiYmU4NThlLTUxMWYtNGE2ZS05ZjA0LTdhNWM2MGUwYWNmND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"6bbe858e-511f-4a6e-9f04-7a5c60e0acf4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:33:02.533Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e2d25125-8e28-46a5-8dd9-9e7aaade38f5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "5163e7dc-322f-41f8-a1e6-054f903bb88f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003317Z:5163e7dc-322f-41f8-a1e6-054f903bb88f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-5716?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU3MTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "42534271-004a-47b9-9c95-82d83bd68036" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU3MTYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "eb4b561e-dba7-48f4-b493-ea3c302d149e" + ], + "x-ms-correlation-request-id": [ + "eb4b561e-dba7-48f4-b493-ea3c302d149e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003318Z:eb4b561e-dba7-48f4-b493-ea3c302d149e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-5716?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTU3MTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f6ddc0f4-0ac7-458c-bf38-88d296220bb6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:18 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDU3MTYtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "3f9c32b3-83f6-452a-99d0-62e701ab4081" + ], + "x-ms-correlation-request-id": [ + "3f9c32b3-83f6-452a-99d0-62e701ab4081" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003318Z:3f9c32b3-83f6-452a-99d0-62e701ab4081" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-5716" + ], + "CreateServer": [ + "sqlcrudtest-1134" + ], + "TestCreateUpdateDropAgent": [ + "sqlcrudtest-6823" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJob.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJob.json new file mode 100644 index 000000000000..530199a637c1 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJob.json @@ -0,0 +1,1781 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-2102?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTIxMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-2102\": \"2018-05-22 00:24:33Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "f9f03c72-2604-4974-8cd5-79b97f8543f7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102\",\r\n \"name\": \"sqlcrudtest-2102\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-2102\": \"2018-05-22 00:24:33Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "8ccc47b9-9a73-4ce7-9c83-da3daf5cd2c8" + ], + "x-ms-correlation-request-id": [ + "8ccc47b9-9a73-4ce7-9c83-da3daf5cd2c8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002434Z:8ccc47b9-9a73-4ce7-9c83-da3daf5cd2c8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "754c0670-1d06-4234-9d10-d576011d1e51" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:24:36.277Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverOperationResults/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "cf1b85ae-3522-493c-8d0c-bea63d318cc7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "7ffeda8a-56d5-47cb-b80b-3ad0da4799d3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002436Z:7ffeda8a-56d5-47cb-b80b-3ad0da4799d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZjFiODVhZS0zNTIyLTQ5M2MtOGQwYy1iZWE2M2QzMThjYzc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cf1b85ae-3522-493c-8d0c-bea63d318cc7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:24:36.277Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e25b086f-d29e-4ae8-a41f-c0f88c33d2e3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "3e67d898-4cac-45c6-ad77-d04e3dcc7a74" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002446Z:3e67d898-4cac-45c6-ad77-d04e3dcc7a74" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZjFiODVhZS0zNTIyLTQ5M2MtOGQwYy1iZWE2M2QzMThjYzc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cf1b85ae-3522-493c-8d0c-bea63d318cc7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:24:36.277Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f2786c70-e248-46b4-9f09-2dfb28165438" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "5229c370-050f-4ede-a8ea-3049e8efa62d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002506Z:5229c370-050f-4ede-a8ea-3049e8efa62d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/cf1b85ae-3522-493c-8d0c-bea63d318cc7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9jZjFiODVhZS0zNTIyLTQ5M2MtOGQwYy1iZWE2M2QzMThjYzc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"cf1b85ae-3522-493c-8d0c-bea63d318cc7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:24:36.277Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "601861f4-adec-4582-b3f3-7c8d7d91a223" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "5ff6ab98-7ba2-42e4-90f7-39aa7d45191c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002526Z:5ff6ab98-7ba2-42e4-90f7-39aa7d45191c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9529.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529\",\r\n \"name\": \"sqlcrudtest-9529\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c30a0365-8cae-482d-92e8-1c3c5a97af77" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "3d353333-ba75-4f8b-9223-7c8393be25f8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002526Z:3d353333-ba75-4f8b-9223-7c8393be25f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MTQwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "4fd8657b-a63b-4d6b-b9ff-b774d9c45e54" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "2d8e2ccd-294a-4bdb-9682-da606049a651" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "86e41691-318a-4f7d-9448-766f5918aecc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002527Z:86e41691-318a-4f7d-9448-766f5918aecc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JiZjQzYzIwLTExZWQtNDlmMi1iNDZiLWZlODRkOTllOTM1ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbf43c20-11ed-49f2-b46b-fe84d99e935e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f926db38-df30-49d2-b031-8d3f51e364bf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "7c83f9cd-89c9-4ece-b050-12887f073654" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002542Z:7c83f9cd-89c9-4ece-b050-12887f073654" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JiZjQzYzIwLTExZWQtNDlmMi1iNDZiLWZlODRkOTllOTM1ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbf43c20-11ed-49f2-b46b-fe84d99e935e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:25:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b1bf4369-445f-416b-9833-d54cbf0871a7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "5b758c66-245d-474a-9b89-d92a7748faf3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002557Z:5b758c66-245d-474a-9b89-d92a7748faf3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JiZjQzYzIwLTExZWQtNDlmMi1iNDZiLWZlODRkOTllOTM1ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbf43c20-11ed-49f2-b46b-fe84d99e935e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f1bab47c-4447-4012-976a-5c8574c5000d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "49e11731-3295-4f84-b1e5-66247673330d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002612Z:49e11731-3295-4f84-b1e5-66247673330d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bbf43c20-11ed-49f2-b46b-fe84d99e935e?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JiZjQzYzIwLTExZWQtNDlmMi1iNDZiLWZlODRkOTllOTM1ZT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bbf43c20-11ed-49f2-b46b-fe84d99e935e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:25:26.823Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f799c8b2-9370-4639-ba10-e95ac6d77ec8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "dbfefdc3-7269-48f8-b6dd-c43b2469709e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002627Z:dbfefdc3-7269-48f8-b6dd-c43b2469709e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MTQwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"b53561df-4f9b-448e-82d6-f8d2ae89f8c8\",\r\n \"creationDate\": \"2018-05-22T00:25:27.137Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-22T00:56:13.407Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140\",\r\n \"name\": \"sqlcrudtest-5140\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b887ae74-fbe5-430e-8d03-210ad75c157d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14973" + ], + "x-ms-correlation-request-id": [ + "97e16793-e25b-4bf6-8ab0-341fa59f3957" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002627Z:97e16793-e25b-4bf6-8ab0-341fa59f3957" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "f183ba61-aa18-40f6-8a9f-7bb1d78c648f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "fbdd51e8-3af9-40dc-bf3b-b75a00b2e87e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "3e9a5be2-ac9c-4057-b5bd-85f818ab840f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002627Z:3e9a5be2-ac9c-4057-b5bd-85f818ab840f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ed5802a7-90bc-4e4b-8fb1-da79d85db589" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14972" + ], + "x-ms-correlation-request-id": [ + "03ab405b-a44e-4f71-b6f7-61e51ac9549b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002642Z:03ab405b-a44e-4f71-b6f7-61e51ac9549b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:26:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "36c3370b-cc49-4f9e-bc47-8586ee7e83cd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "6c841054-0708-4357-80da-cd37cd1c30c1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002657Z:6c841054-0708-4357-80da-cd37cd1c30c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:27:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f41d8b8e-0ca6-4531-9607-d06dca337276" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "11b94759-82b3-4df5-a41e-e299dc33ff64" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002713Z:11b94759-82b3-4df5-a41e-e299dc33ff64" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:27:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c0ebedf0-5021-4781-b990-52e2a57864b4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "6a42cb74-4b3c-4f2d-94f1-c3db5dc7e387" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002728Z:6a42cb74-4b3c-4f2d-94f1-c3db5dc7e387" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:27:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3d2ef129-1230-4794-9d5d-7ffeab769bce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "08a254fc-c826-418f-b161-446ec8188526" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002743Z:08a254fc-c826-418f-b161-446ec8188526" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:27:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e8404ea5-3110-409a-82c9-87acc0fb7794" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "8d79c953-ded2-434b-8a3e-58a0e9d1ef8b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002758Z:8d79c953-ded2-434b-8a3e-58a0e9d1ef8b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "72656cf1-3ad0-460d-8a7a-43207d80bffd" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "5184d810-d737-4ef9-a29a-11b0ccbefd30" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002813Z:5184d810-d737-4ef9-a29a-11b0ccbefd30" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/49353073-f826-4f1d-956e-4766f2e027f3?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzQ5MzUzMDczLWY4MjYtNGYxZC05NTZlLTQ3NjZmMmUwMjdmMz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"49353073-f826-4f1d-956e-4766f2e027f3\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:26:27.747Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "394b5847-96e9-440d-92bf-76b0c4eed5de" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "f22260f1-bbe6-45d9-8ee1-8ef76153c083" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002828Z:f22260f1-bbe6-45d9-8ee1-8ef76153c083" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/databases/sqlcrudtest-5140\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e09117c5-e03f-4044-b57c-d6265615d5a8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14964" + ], + "x-ms-correlation-request-id": [ + "4aec277d-1737-4b6c-9790-2e70fd088129" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002828Z:4aec277d-1737-4b6c-9790-2e70fd088129" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "259" + ], + "x-ms-client-request-id": [ + "628cb031-baae-4be5-89fc-1133d9965579" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"0001-01-02T00:00:00Z\",\r\n \"type\": \"Recurring\",\r\n \"enabled\": false,\r\n \"interval\": \"PT5M\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "421" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "565728e7-05f7-415b-a7b4-c036cec6d834" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "2fc1ae50-e2fc-4254-81bd-237a62cdb5f2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002829Z:2fc1ae50-e2fc-4254-81bd-237a62cdb5f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "6b0124c4-a424-4892-8bc3-5a5a4e6738b2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "13da78e3-35fc-4701-989e-ae2ece729411" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1189" + ], + "x-ms-correlation-request-id": [ + "4cc4844e-406f-442e-a37e-57d84256080b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002829Z:4cc4844e-406f-442e-a37e-57d84256080b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudC9qb2JzP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bdc64149-d1fd-47c6-af91-e62d408d73e4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9c6e1b32-464c-44a6-b4a5-fac2fc0388a6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14963" + ], + "x-ms-correlation-request-id": [ + "19558aad-d2b6-4c5d-8b4e-69164d43559c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002829Z:19558aad-d2b6-4c5d-8b4e-69164d43559c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-2102/providers/Microsoft.Sql/servers/sqlcrudtest-9529/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTIxMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05NTI5L2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "eba4dcc9-57de-4364-b50d-ef685c6bb2d0" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "7b9aa7f0-dc81-4a40-aa10-b057acdb1517" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "1a244aee-34d6-479c-ab6b-098c16f2671a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002829Z:1a244aee-34d6-479c-ab6b-098c16f2671a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-2102?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTIxMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8bd604e-0edb-4997-8430-9b9efd93f7ea" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDIxMDItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "6a2c4865-d6f9-4196-9e1e-10b75ebd88d2" + ], + "x-ms-correlation-request-id": [ + "6a2c4865-d6f9-4196-9e1e-10b75ebd88d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002830Z:6a2c4865-d6f9-4196-9e1e-10b75ebd88d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-2102?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTIxMDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a144975b-1d3e-4ee0-bae5-9ae4258c086c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:28:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDIxMDItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "ccd971ab-33a9-45ab-b547-c3bc24a70ab1" + ], + "x-ms-correlation-request-id": [ + "ccd971ab-33a9-45ab-b547-c3bc24a70ab1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002830Z:ccd971ab-33a9-45ab-b547-c3bc24a70ab1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-2102" + ], + "CreateServer": [ + "sqlcrudtest-9529" + ], + "TestCreateUpdateDropJob": [ + "sqlcrudtest-5140" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobCredential.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobCredential.json new file mode 100644 index 000000000000..407b6881596e --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobCredential.json @@ -0,0 +1,1598 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6025?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6025\": \"2018-05-22 00:17:08Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "08a9141f-3a47-46a3-babe-0c44147e302b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025\",\r\n \"name\": \"sqlcrudtest-6025\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6025\": \"2018-05-22 00:17:08Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:09 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "b674f32e-6c62-4c22-81ef-6d6ee9bae05b" + ], + "x-ms-correlation-request-id": [ + "b674f32e-6c62-4c22-81ef-6d6ee9bae05b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001709Z:b674f32e-6c62-4c22-81ef-6d6ee9bae05b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "78f7d031-bb4f-449c-9b6a-fa106b7081d8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:17:13.553Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverOperationResults/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "8eca8525-7a73-41c7-ad6d-6bdcf575b4d7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5d85cfb7-1bfe-4e34-a67c-305c5fb50166" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001713Z:5d85cfb7-1bfe-4e34-a67c-305c5fb50166" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZWNhODUyNS03YTczLTQxYzctYWQ2ZC02YmRjZjU3NWI0ZDc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8eca8525-7a73-41c7-ad6d-6bdcf575b4d7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:17:13.553Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "97d724ad-debd-4b4c-aad0-835ceae9c5b5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "d86f26c1-ed15-4010-9719-55b25d9d263c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001723Z:d86f26c1-ed15-4010-9719-55b25d9d263c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZWNhODUyNS03YTczLTQxYzctYWQ2ZC02YmRjZjU3NWI0ZDc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8eca8525-7a73-41c7-ad6d-6bdcf575b4d7\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:17:13.553Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:43 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d230dcc6-99c1-4463-851c-b73aa091bb8a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "eb002520-895f-4999-ad99-0d8f47ed71e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001743Z:eb002520-895f-4999-ad99-0d8f47ed71e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8eca8525-7a73-41c7-ad6d-6bdcf575b4d7?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84ZWNhODUyNS03YTczLTQxYzctYWQ2ZC02YmRjZjU3NWI0ZDc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8eca8525-7a73-41c7-ad6d-6bdcf575b4d7\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:17:13.553Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9e5cd9d-67d3-4b10-a358-3bac33f03634" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "c425f829-43bf-4414-a2bf-bda1b8e59224" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001803Z:c425f829-43bf-4414-a2bf-bda1b8e59224" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0P2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7874.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874\",\r\n \"name\": \"sqlcrudtest-7874\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b0fe88ce-5d91-405c-9878-ecbe04acb72e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "283cc934-c9ba-4efa-9c4e-dd0887862565" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001803Z:283cc934-c9ba-4efa-9c4e-dd0887862565" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzQ0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "8f342489-e09e-427f-ad46-458686acd371" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "0b1e9dca-d03b-4883-bc55-b7562cabd2fc" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "4c28ba4a-a23f-42b1-8c6d-fa82026576e1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001804Z:4c28ba4a-a23f-42b1-8c6d-fa82026576e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzEyOTA2YjFmLTUyZDUtNDAxOC05NmZiLTc1ZWQxYTQyMjA4Yj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"12906b1f-52d5-4018-96fb-75ed1a42208b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:19 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5080232d-340f-4a14-948c-cf3713323e5d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "dfa9790c-542a-4312-88b7-65f1c0daae62" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001819Z:dfa9790c-542a-4312-88b7-65f1c0daae62" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzEyOTA2YjFmLTUyZDUtNDAxOC05NmZiLTc1ZWQxYTQyMjA4Yj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"12906b1f-52d5-4018-96fb-75ed1a42208b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fcc7a572-a58e-436f-84ca-4ebf3ed592a3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "76dfac2e-59a6-4a63-97dd-9928afbaf797" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001835Z:76dfac2e-59a6-4a63-97dd-9928afbaf797" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzEyOTA2YjFmLTUyZDUtNDAxOC05NmZiLTc1ZWQxYTQyMjA4Yj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"12906b1f-52d5-4018-96fb-75ed1a42208b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:18:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9ffc16e-fc23-4cce-836d-dbcdf32866f0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "062c39ca-ab24-43bd-a000-e50be7d71640" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001850Z:062c39ca-ab24-43bd-a000-e50be7d71640" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/12906b1f-52d5-4018-96fb-75ed1a42208b?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzEyOTA2YjFmLTUyZDUtNDAxOC05NmZiLTc1ZWQxYTQyMjA4Yj9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"12906b1f-52d5-4018-96fb-75ed1a42208b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:18:04.283Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "651bee55-4b6b-4d0b-900b-f151d2d5cbe7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "ce085ad9-4ccd-4f0e-8db7-cf2aed4dfbbf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001905Z:ce085ad9-4ccd-4f0e-8db7-cf2aed4dfbbf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03MzQ0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"7a1cd104-c8a4-4a14-aa9f-cf4824790c9c\",\r\n \"creationDate\": \"2018-05-22T00:18:04.503Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-22T00:49:03.257Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344\",\r\n \"name\": \"sqlcrudtest-7344\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7f304579-31a5-4b50-8e2c-f23c06b0fea5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "60b2c5fb-4f21-406d-9655-21b6e50a0aad" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001905Z:60b2c5fb-4f21-406d-9655-21b6e50a0aad" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "69fd5d1c-2225-442d-91ff-bab2df367b0b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "70" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "8f3def10-c119-4c77-af5c-0cee6786cb72" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "e171a1cb-9506-406e-9bde-90f11bcf2f61" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001905Z:e171a1cb-9506-406e-9bde-90f11bcf2f61" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "49e2f364-e50e-4a65-b718-f85ce71b7fa8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "b7f68565-211f-4a58-aa6f-a5bc14021c60" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001920Z:b7f68565-211f-4a58-aa6f-a5bc14021c60" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6199ebf2-3236-4435-84ae-1bb59cb3ac68" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "03c7d8f6-82d3-45b5-9a3f-4b0be68e4814" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001935Z:03c7d8f6-82d3-45b5-9a3f-4b0be68e4814" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:19:49 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ff85ad62-4587-427b-9dff-b3f30f325692" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "19f77071-35cf-440e-a03c-047ae13a6fab" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001950Z:19f77071-35cf-440e-a03c-047ae13a6fab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0275cfb8-b58b-412a-9f0e-bd56f1c6d244" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "007aafa9-8ff2-478d-b9c9-dc6c70cfad14" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002005Z:007aafa9-8ff2-478d-b9c9-dc6c70cfad14" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/52201af0-e143-49e4-aa89-c76ea0291a1c?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzUyMjAxYWYwLWUxNDMtNDllNC1hYTg5LWM3NmVhMDI5MWExYz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"52201af0-e143-49e4-aa89-c76ea0291a1c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:19:05.39Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ebd85c8c-13aa-4d5e-b3a9-ae99b89668c1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "2cfef623-3aea-4e50-929b-2eff96ba5239" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002020Z:2cfef623-3aea-4e50-929b-2eff96ba5239" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/databases/sqlcrudtest-7344\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "29c6cbe6-b9c9-4501-9761-26ac4ce2b3ee" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "18d449d4-07d8-48ea-9fef-907590ddc5e0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002021Z:18d449d4-07d8-48ea-9fef-907590ddc5e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"a\",\r\n \"password\": \"b!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "72" + ], + "x-ms-client-request-id": [ + "d75bcb8a-2a92-4c5c-b851-c1c9e893ee1b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"a\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "283" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2dfe6fde-354b-4662-8c41-30c0a86ca9ce" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "31d2e6a8-039e-4b5b-9337-801df8d3fdf5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002022Z:31d2e6a8-039e-4b5b-9337-801df8d3fdf5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "4835e98d-e1f0-4400-a0bd-df97b9230a13" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7c4a342a-eeaf-45f1-b442-47746190e895" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "3e463f49-9d94-451d-9b0d-7f502e349ffe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002022Z:3e463f49-9d94-451d-9b0d-7f502e349ffe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "10b87d67-59a9-4730-8e09-3a09fad91578" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4c6f25ea-035e-4cc5-a7be-acc5b0bd29a9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "3e79fa27-ed7e-4000-acdb-0c227ba4c953" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002022Z:3e79fa27-ed7e-4000-acdb-0c227ba4c953" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6025/providers/Microsoft.Sql/servers/sqlcrudtest-7874/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTYwMjUvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODc0L2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b7a9a6b4-c34e-40a5-b561-9aaa28f6e9e2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "29a600e5-c40c-4549-904a-e7baa94031f7" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "8d4dcd4d-1536-4737-b2ce-5b6535fbce1f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002022Z:8d4dcd4d-1536-4737-b2ce-5b6535fbce1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6025?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "318ae6f9-13fe-4d28-aec7-43e025ba570e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYwMjUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "e9b4ee93-cf4b-42a0-86db-c90d78a1b157" + ], + "x-ms-correlation-request-id": [ + "e9b4ee93-cf4b-42a0-86db-c90d78a1b157" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002023Z:e9b4ee93-cf4b-42a0-86db-c90d78a1b157" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6025?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTYwMjU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "01d1c4fc-eb5a-4ef6-89ee-7fb9bf57d3ba" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDYwMjUtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "22c09fd0-82a0-491a-afe5-56ab2cb48764" + ], + "x-ms-correlation-request-id": [ + "22c09fd0-82a0-491a-afe5-56ab2cb48764" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002023Z:22c09fd0-82a0-491a-afe5-56ab2cb48764" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-6025" + ], + "CreateServer": [ + "sqlcrudtest-7874" + ], + "TestCreateUpdateDropJobCredential": [ + "sqlcrudtest-7344" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobStep.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobStep.json new file mode 100644 index 000000000000..943391b8c2ed --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropJobStep.json @@ -0,0 +1,1982 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8393?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgzOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8393\": \"2018-05-22 00:20:27Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "e055dd05-7c33-4156-84f1-2ce6fc3f5278" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393\",\r\n \"name\": \"sqlcrudtest-8393\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-8393\": \"2018-05-22 00:20:27Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "f717c481-e70d-4916-bf76-51ad1a6c7622" + ], + "x-ms-correlation-request-id": [ + "f717c481-e70d-4916-bf76-51ad1a6c7622" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002029Z:f717c481-e70d-4916-bf76-51ad1a6c7622" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "d3b0e857-0f44-423d-93c9-2cd52d4e9805" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:20:35.137Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverOperationResults/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "69ab1edb-65e0-4e58-82f0-dd0d803329c0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5f4797bf-fb92-4a40-9b03-e43b6c8be44a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002035Z:5f4797bf-fb92-4a40-9b03-e43b6c8be44a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82OWFiMWVkYi02NWUwLTRlNTgtODJmMC1kZDBkODAzMzI5YzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"69ab1edb-65e0-4e58-82f0-dd0d803329c0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:20:35.137Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:20:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1edfac4d-49fb-48b5-9f4c-b9d0b5022b73" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "bf14ab55-783a-4f28-b061-ecdda0b56ffd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002045Z:bf14ab55-783a-4f28-b061-ecdda0b56ffd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82OWFiMWVkYi02NWUwLTRlNTgtODJmMC1kZDBkODAzMzI5YzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"69ab1edb-65e0-4e58-82f0-dd0d803329c0\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:20:35.137Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "be0b285c-f5ed-449c-bf08-36efc49cc3bc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "fc191042-bc41-4496-bbcf-4ed3ef150b10" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002105Z:fc191042-bc41-4496-bbcf-4ed3ef150b10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/69ab1edb-65e0-4e58-82f0-dd0d803329c0?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi82OWFiMWVkYi02NWUwLTRlNTgtODJmMC1kZDBkODAzMzI5YzA/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"69ab1edb-65e0-4e58-82f0-dd0d803329c0\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:20:35.137Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cc1f716e-5f69-4f3b-bebc-a970b86290ce" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "b585aec5-f001-4e8f-b4a4-c36c3ff09827" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002125Z:b585aec5-f001-4e8f-b4a4-c36c3ff09827" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-6361.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361\",\r\n \"name\": \"sqlcrudtest-6361\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0ead810f-e94b-46a5-8e77-8260faa9dfcc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "2456bc78-e56b-4a53-9e2f-367259ed0a77" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002125Z:2456bc78-e56b-4a53-9e2f-367259ed0a77" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODE5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "a30fbb9c-646e-4bfd-9fc1-28b897174e4f" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "b1ddcb1f-9a77-4168-bd2b-cbfcbe029b6d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "7d25d202-f1b2-469b-b04b-aaaa1380565b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002125Z:7d25d202-f1b2-469b-b04b-aaaa1380565b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc5Yjk5MTE3LTY0YzMtNDk0Mi1iODUwLThkYjBiOGJlZjEwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"79b99117-64c3-4942-b850-8db0b8bef109\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e095c939-6617-4d60-bced-eb5c2ad36e93" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "419a042e-535c-4cda-af7c-289c7ec60192" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002140Z:419a042e-535c-4cda-af7c-289c7ec60192" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc5Yjk5MTE3LTY0YzMtNDk0Mi1iODUwLThkYjBiOGJlZjEwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"79b99117-64c3-4942-b850-8db0b8bef109\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:21:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6b0f7623-ee19-48ff-a9d2-f5911f2370bc" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "b1f06725-8fba-4c47-97cf-ef510b6cdb82" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002156Z:b1f06725-8fba-4c47-97cf-ef510b6cdb82" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc5Yjk5MTE3LTY0YzMtNDk0Mi1iODUwLThkYjBiOGJlZjEwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"79b99117-64c3-4942-b850-8db0b8bef109\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:10 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4b867f85-ebea-4ae7-8aaa-325d9d223af7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "48ce4526-1f0a-4caa-8b75-f22ee3501029" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002211Z:48ce4526-1f0a-4caa-8b75-f22ee3501029" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/79b99117-64c3-4942-b850-8db0b8bef109?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzc5Yjk5MTE3LTY0YzMtNDk0Mi1iODUwLThkYjBiOGJlZjEwOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"79b99117-64c3-4942-b850-8db0b8bef109\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:21:25.85Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ee933283-61ee-4421-bcd2-9fe5f3f3b6c9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "06702ff5-d342-4d91-a5c9-ee3263cc9199" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002226Z:06702ff5-d342-4d91-a5c9-ee3263cc9199" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODE5P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"debdfeef-5702-464e-ab4e-74730f473185\",\r\n \"creationDate\": \"2018-05-22T00:21:26.1Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-22T00:52:16.917Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819\",\r\n \"name\": \"sqlcrudtest-8819\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:25 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "81703154-6dd1-47e7-8514-678047a82b52" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "a6b0b45e-c190-4ee7-a8f9-bb0677f0dac3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002226Z:a6b0b45e-c190-4ee7-a8f9-bb0677f0dac3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "b344830b-7e81-4c9e-851f-0c5185660416" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "d7c71cdb-6020-44d4-9d20-9ca37af47b7a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "ddf4d3a4-c02a-4139-bb36-a79e61cfcc20" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002226Z:ddf4d3a4-c02a-4139-bb36-a79e61cfcc20" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69f498cf-656f-4361-95c2-d118de10d8e5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "3e56eff3-4d65-481b-a176-887a6696e5b8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002241Z:3e56eff3-4d65-481b-a176-887a6696e5b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:22:56 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e28b9ae5-803b-4da8-b011-0fc739845dbf" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "28f961b1-d95e-4a1f-b18e-05ac5d16d89d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002256Z:28f961b1-d95e-4a1f-b18e-05ac5d16d89d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:23:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1e88453e-ce93-4ce5-ae8b-e9d02c9f07a3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "94db6f31-8d0a-42a8-9341-6c324c930d7e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002312Z:94db6f31-8d0a-42a8-9341-6c324c930d7e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:23:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "802ce37f-5091-4e23-9b32-1cf3ea82fbb8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "767aed58-cd59-4abf-8bf2-bbf38b42cfbe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002327Z:767aed58-cd59-4abf-8bf2-bbf38b42cfbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:23:41 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "34244548-f7ce-4d20-af3f-45e66c4717ad" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "0d3d4c5b-9bb1-4362-b14a-a4247716d048" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002342Z:0d3d4c5b-9bb1-4362-b14a-a4247716d048" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:23:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "282f4915-08ff-4d55-9516-1ad4fc5b6f86" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "024d1fb5-1adf-4ee9-a4d0-3b624b08d983" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002357Z:024d1fb5-1adf-4ee9-a4d0-3b624b08d983" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:11 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0645762f-739c-42e1-b652-61c8926fad38" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "3306f0f8-3202-4a0f-8f5f-2806e2d3cdda" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002412Z:3306f0f8-3202-4a0f-8f5f-2806e2d3cdda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/7ab5f1c9-0437-44bf-ae47-01a40957a274?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzdhYjVmMWM5LTA0MzctNDRiZi1hZTQ3LTAxYTQwOTU3YTI3ND9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"7ab5f1c9-0437-44bf-ae47-01a40957a274\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:22:26.783Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1fc2342d-8ca0-4657-9ac1-ee171ea8edb7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "7abef27f-b5c3-4ac1-86da-45b2b6192fbb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002427Z:7abef27f-b5c3-4ac1-86da-45b2b6192fbb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/databases/sqlcrudtest-8819\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:26 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "34eae5a9-e72f-4246-aa45-794d6b51d027" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "dcff21a9-5aaa-42b9-bdf2-f2a725def8d3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002427Z:dcff21a9-5aaa-42b9-bdf2-f2a725def8d3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "e73519a2-a7f6-4c6c-84f8-00d92735237d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:27 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "98169511-2426-48a9-bf13-42ef47e6d1bf" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "6f8f2805-d24d-4d3f-9415-37abfd2a3800" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002428Z:6f8f2805-d24d-4d3f-9415-37abfd2a3800" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-6361\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "386" + ], + "x-ms-client-request-id": [ + "2169f669-b7fa-418b-8c61-4250c31260c4" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"sqlcrudtest-6361\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "542" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "47516e5b-3963-4573-965e-0ae5c29c57d7" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "cf2803fc-33b7-4af3-b5c2-344db6fccf30" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002428Z:cf2803fc-33b7-4af3-b5c2-344db6fccf30" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "f2dd7431-bfed-45ec-a930-56d073d42b60" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "397" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:28 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "a305b46d-808b-4037-a483-68b5efe5496b" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "443375e7-f69a-4afd-b5fb-0c8450319a13" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002429Z:443375e7-f69a-4afd-b5fb-0c8450319a13" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "462" + ], + "x-ms-client-request-id": [ + "8792b0ba-f045-42c6-acad-ec5cfedda235" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "869" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "e05f73d0-a4ae-4ba0-a42c-65086ea55b8a" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "05bb73d9-f46d-4320-8338-f2facf1032a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002430Z:05bb73d9-f46d-4320-8338-f2facf1032a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"subscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1203" + ], + "x-ms-client-request-id": [ + "0733b534-3cb9-4f5d-84dc-3f6cf6810900" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:29 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "abfbd03a-7b30-4987-939e-63193c8de329" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "5aeabe19-867a-46bb-9c13-5031f4f1cca0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002430Z:5aeabe19-867a-46bb-9c13-5031f4f1cca0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c76fe375-bafb-40ac-b24c-7be79be7cf36" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"output\": {\r\n \"type\": \"SqlDatabase\",\r\n \"resourceGroupName\": \"rg1\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"schemaName\": \"dbo\",\r\n \"tableName\": \"tbl\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 10000,\r\n \"retryAttempts\": 1000,\r\n \"initialRetryIntervalSeconds\": 100,\r\n \"maximumRetryIntervalSeconds\": 1000,\r\n \"retryIntervalBackoffMultiplier\": 1.5\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d06ce36c-68d7-46de-9921-86a8a8eaf096" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "b6e576e4-599f-4203-8bef-2e16ffba3cd0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002430Z:b6e576e4-599f-4203-8bef-2e16ffba3cd0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-8393/providers/Microsoft.Sql/servers/sqlcrudtest-6361/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgzOTMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC02MzYxL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5e5be27a-4962-47e0-a221-e58b18466568" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "1442f03c-999f-45fd-ab86-be6a37cea786" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "48e6ddd2-2945-43b2-ad46-507208da2955" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002431Z:48e6ddd2-2945-43b2-ad46-507208da2955" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8393?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgzOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ab4e154b-15a6-4d05-bf65-518ba9a76840" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgzOTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "5d6903a3-ba65-4b7f-8111-7feb647d1448" + ], + "x-ms-correlation-request-id": [ + "5d6903a3-ba65-4b7f-8111-7feb647d1448" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002431Z:5d6903a3-ba65-4b7f-8111-7feb647d1448" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-8393?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgzOTM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2a4c557d-9ccf-413b-99b1-885ac4ca2955" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:24:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgzOTMtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "cc318ef8-8781-40da-8e97-7fd6dc8443bf" + ], + "x-ms-correlation-request-id": [ + "cc318ef8-8781-40da-8e97-7fd6dc8443bf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T002431Z:cc318ef8-8781-40da-8e97-7fd6dc8443bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-8393" + ], + "CreateServer": [ + "sqlcrudtest-6361" + ], + "TestCreateUpdateDropJobStep": [ + "sqlcrudtest-8819" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropTargetGroup.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropTargetGroup.json new file mode 100644 index 000000000000..8e324017ba72 --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestCreateUpdateDropTargetGroup.json @@ -0,0 +1,1787 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6442\": \"2018-05-22 00:13:21Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "1256d1dd-73f7-47ca-8b14-e96dac67b5b2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442\",\r\n \"name\": \"sqlcrudtest-6442\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-6442\": \"2018-05-22 00:13:21Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:13:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "a53dd609-88cd-42ad-935b-4f0538800584" + ], + "x-ms-correlation-request-id": [ + "a53dd609-88cd-42ad-935b-4f0538800584" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001322Z:a53dd609-88cd-42ad-935b-4f0538800584" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "8a313bba-d117-4c43-942f-99738f1702b8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:13:25.207Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:13:24 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverOperationResults/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "e8514573-8323-477c-9aa4-ef2d9e6bca72" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "26635795-8776-45ab-be5a-155d48311223" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001325Z:26635795-8776-45ab-be5a-155d48311223" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lODUxNDU3My04MzIzLTQ3N2MtOWFhNC1lZjJkOWU2YmNhNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e8514573-8323-477c-9aa4-ef2d9e6bca72\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:13:25.207Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:13:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "91315d33-8637-44c4-ae6c-8b34c17f253c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "eac8b714-5e32-40f0-b7d9-a6255fea2ac6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001335Z:eac8b714-5e32-40f0-b7d9-a6255fea2ac6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lODUxNDU3My04MzIzLTQ3N2MtOWFhNC1lZjJkOWU2YmNhNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e8514573-8323-477c-9aa4-ef2d9e6bca72\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:13:25.207Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:13:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e9d8600a-080b-4043-bf1f-a4589649c006" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "8fbd79de-84a2-4d12-b45d-d1c55dca85e0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001355Z:8fbd79de-84a2-4d12-b45d-d1c55dca85e0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/e8514573-8323-477c-9aa4-ef2d9e6bca72?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi9lODUxNDU3My04MzIzLTQ3N2MtOWFhNC1lZjJkOWU2YmNhNzI/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"e8514573-8323-477c-9aa4-ef2d9e6bca72\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:13:25.207Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cf183ab7-46ba-4944-a3fc-eaf5678a7d28" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "26b669a7-5d82-4977-993c-52a056162a40" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001415Z:26b669a7-5d82-4977-993c-52a056162a40" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9242.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242\",\r\n \"name\": \"sqlcrudtest-9242\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c0fe1ac-d5a8-4278-90cf-39810fa7c3c1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "d0b552e7-6da9-4bae-b40c-6eb46bad5b17" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001415Z:d0b552e7-6da9-4bae-b40c-6eb46bad5b17" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNjAwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "15d9a9ce-7792-4ab5-98b1-6b03acc44a49" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "12ec5a66-aacd-4507-b6b8-945aab77634f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "07a06384-3e17-4fb2-9264-9fb779ab2ac6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001416Z:07a06384-3e17-4fb2-9264-9fb779ab2ac6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQzN2FlZDljLWRiMmQtNDQwZS1hODdkLTY4MmQxZWJkMTNmOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"437aed9c-db2d-440e-a87d-682d1ebd13f9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "312405da-aea4-4dac-97b9-d89d2f285ef5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "3328c0a2-2add-4f00-95e6-fef979eeea05" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001431Z:3328c0a2-2add-4f00-95e6-fef979eeea05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQzN2FlZDljLWRiMmQtNDQwZS1hODdkLTY4MmQxZWJkMTNmOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"437aed9c-db2d-440e-a87d-682d1ebd13f9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:14:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "7cc8bfa6-3125-4894-a14a-55c3b4c08ad5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "255097e7-eeab-48ea-bf15-96e035114458" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001446Z:255097e7-eeab-48ea-bf15-96e035114458" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQzN2FlZDljLWRiMmQtNDQwZS1hODdkLTY4MmQxZWJkMTNmOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"437aed9c-db2d-440e-a87d-682d1ebd13f9\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "24e4579a-61c3-4875-9f4d-08b420a9b552" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "cc92bbd8-d49e-4151-a14b-ad6e86851f9d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001501Z:cc92bbd8-d49e-4151-a14b-ad6e86851f9d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/437aed9c-db2d-440e-a87d-682d1ebd13f9?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uLzQzN2FlZDljLWRiMmQtNDQwZS1hODdkLTY4MmQxZWJkMTNmOT9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"437aed9c-db2d-440e-a87d-682d1ebd13f9\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:14:16.14Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a1acc335-8119-429c-8bd4-41bcf182f6e6" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "06516de7-60ab-4476-8f11-2648a45770ec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001516Z:06516de7-60ab-4476-8f11-2648a45770ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC0xNjAwP2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"6cc18958-3dff-4778-93c0-1493fadc4dbd\",\r\n \"creationDate\": \"2018-05-22T00:14:16.44Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-22T00:45:09.913Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600\",\r\n \"name\": \"sqlcrudtest-1600\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:16 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "911a66d7-9d0c-43be-b978-0cc3ffb36e8e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "d89bed44-139b-4e9f-b6f0-44192fa4fc70" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001516Z:d89bed44-139b-4e9f-b6f0-44192fa4fc70" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "235" + ], + "x-ms-client-request-id": [ + "c997089f-93de-4405-a443-2424c5deff7d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "af9caf06-da66-4dc0-89cf-67306fea7c6e" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "5d65660f-080e-4262-975a-65c4647382c9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001517Z:5d65660f-080e-4262-975a-65c4647382c9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0eaaff6d-ba9b-4642-a0c6-e5a1bb8b84ab" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "4df30f1d-d06e-44fd-89be-da2aab6c54e7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001532Z:4df30f1d-d06e-44fd-89be-da2aab6c54e7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:15:47 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "cf2539f3-3fab-42a5-ad11-f4c4affda0d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "78bdcecb-af97-42ad-ac3e-eb84e33a3bb6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001547Z:78bdcecb-af97-42ad-ac3e-eb84e33a3bb6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:16:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b415778d-8202-4913-9d7c-9c0895eb8101" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "37a522f6-3c23-4075-a6d4-4a1df6a19c0a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001603Z:37a522f6-3c23-4075-a6d4-4a1df6a19c0a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:16:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "0bd5dc09-a22c-4f32-bbc3-3e42768333f8" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "4286667e-2b14-42e5-89ba-2089c98af9fa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001618Z:4286667e-2b14-42e5-89ba-2089c98af9fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:16:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fd2710fe-d746-45af-8680-45f3a610449e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "8d7d76e0-3589-4697-a98f-2ad0f1cfca7a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001633Z:8d7d76e0-3589-4697-a98f-2ad0f1cfca7a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:16:48 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e9664edb-724c-43e7-9087-43f917c86714" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "4deb2892-309f-44f2-9947-5b09bb2d93ba" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001648Z:4deb2892-309f-44f2-9947-5b09bb2d93ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/27013a81-2a22-486a-aee7-8b0238739c40?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzI3MDEzYTgxLTJhMjItNDg2YS1hZWU3LThiMDIzODczOWM0MD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"27013a81-2a22-486a-aee7-8b0238739c40\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:15:16.927Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "427bf128-b4d0-45e2-b407-930bc2537493" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "5db1c516-bdd2-4eb3-ac4d-7621fb0adfb5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001703Z:5db1c516-bdd2-4eb3-ac4d-7621fb0adfb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/databases/sqlcrudtest-1600\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ac80dbb8-571c-4fd5-87f2-181239f3ae95" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "f5df8609-1293-422b-bf7a-8d5eb057c6d6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001703Z:f5df8609-1293-422b-bf7a-8d5eb057c6d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "41d66447-b2e3-4557-b512-04174b3a4dae" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "9075f28c-d571-49be-b6c6-fce04d831d98" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "b81d7158-d1e3-40d6-880a-a2b058c0b19a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001704Z:b81d7158-d1e3-40d6-880a-a2b058c0b19a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "372" + ], + "x-ms-client-request-id": [ + "ef2f2000-80f7-41f4-a439-dd085f46c2f3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "528" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "54caba2c-00cc-4b62-8db1-b3c9afd29f06" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "96f61769-cd20-446b-b273-c18e3a196e37" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001705Z:96f61769-cd20-446b-b273-c18e3a196e37" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1267" + ], + "x-ms-client-request-id": [ + "b27dc7d5-6a73-4745-8298-df9ea54276c7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dfa8832e-00c8-4f07-bfb2-11cfb58cb9fd" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "eeb0bc57-2f2f-4156-b157-68cc3486700e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001705Z:eeb0bc57-2f2f-4156-b157-68cc3486700e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4c0f37bf-c182-45e0-875a-58cf553d4dd3" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlElasticPool\",\r\n \"serverName\": \"s1\",\r\n \"elasticPoolName\": \"ep1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Exclude\",\r\n \"type\": \"SqlShardMap\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\",\r\n \"shardMapName\": \"sm1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"s1\",\r\n \"databaseName\": \"db1\"\r\n },\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlServer\",\r\n \"serverName\": \"s1\",\r\n \"refreshCredential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/credentials/dummylogin\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9a4d2443-ede5-4e9c-af61-97f2178bd467" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "76e8b7fd-7a17-4a86-a902-d761672469f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001705Z:76e8b7fd-7a17-4a86-a902-d761672469f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-6442/providers/Microsoft.Sql/servers/sqlcrudtest-9242/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY0NDIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05MjQyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "08734c9e-0222-4c86-a44d-b58c43c308b1" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "008937e5-7b15-4860-9b32-6b1e9223c076" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "361d1c76-8d23-4192-9a46-69a4ec1e7599" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001705Z:361d1c76-8d23-4192-9a46-69a4ec1e7599" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "73d9f911-4de0-4c5d-860f-b4a1c8a0d382" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY0NDItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "673ae7bd-d2cd-4a39-a352-58bf311e3e36" + ], + "x-ms-correlation-request-id": [ + "673ae7bd-d2cd-4a39-a352-58bf311e3e36" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001706Z:673ae7bd-d2cd-4a39-a352-58bf311e3e36" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-6442?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY0NDI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "21c58d8d-ffe6-4306-a52f-337931f98608" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:17:06 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY0NDItV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "8063163b-8d2f-4507-9900-ac1ad4ad0c49" + ], + "x-ms-correlation-request-id": [ + "8063163b-8d2f-4507-9900-ac1ad4ad0c49" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T001706Z:8063163b-8d2f-4507-9900-ac1ad4ad0c49" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-6442" + ], + "CreateServer": [ + "sqlcrudtest-9242" + ], + "TestCreateUpdateDropTargetGroup": [ + "sqlcrudtest-1600" + ] + }, + "Variables": { + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda", + "DefaultLocation": "west us 2" + } +} \ No newline at end of file diff --git a/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestStartStopGetJobExecution.json b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestStartStopGetJobExecution.json new file mode 100644 index 000000000000..1c120e8d5ffb --- /dev/null +++ b/src/SDKs/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.ElasticJobAgentScenarioTests/TestStartStopGetJobExecution.json @@ -0,0 +1,2494 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7377?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczNzc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"west us 2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7377\": \"2018-05-22 00:33:21Z\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "98" + ], + "x-ms-client-request-id": [ + "7c8bf852-097c-434a-b673-036e968d4953" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377\",\r\n \"name\": \"sqlcrudtest-7377\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"sqlcrudtest-7377\": \"2018-05-22 00:33:21Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "237" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:21 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "16a8f6b0-4364-4186-8607-bd6d7fdf2a26" + ], + "x-ms-correlation-request-id": [ + "16a8f6b0-4364-4186-8607-bd6d7fdf2a26" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003321Z:16a8f6b0-4364-4186-8607-bd6d7fdf2a26" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"tags\": {},\r\n \"location\": \"west us 2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ], + "x-ms-client-request-id": [ + "1ed59394-7dcd-4ba6-8107-ce36b2ee2a9c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2018-05-22T00:33:23.7Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "72" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:22 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverOperationResults/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview" + ], + "Retry-After": [ + "1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview" + ], + "x-ms-request-id": [ + "8bbc1442-3ae8-46b4-9dae-c11131a11527" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "a44b56db-da0d-4417-be70-f0a1254a6e55" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003323Z:a44b56db-da0d-4417-be70-f0a1254a6e55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84YmJjMTQ0Mi0zYWU4LTQ2YjQtOWRhZS1jMTExMzFhMTE1Mjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8bbc1442-3ae8-46b4-9dae-c11131a11527\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:33:23.7Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:33 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "967c93e1-96d5-44be-8569-7af00ba4609b" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "22de71ac-a091-4749-89fd-cfb580aaa417" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003333Z:22de71ac-a091-4749-89fd-cfb580aaa417" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84YmJjMTQ0Mi0zYWU4LTQ2YjQtOWRhZS1jMTExMzFhMTE1Mjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8bbc1442-3ae8-46b4-9dae-c11131a11527\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:33:23.7Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:33:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "20" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6db805b5-d335-4623-8c1d-0a9a28f088b0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "1043744c-5016-46f5-ac31-70de54a07a58" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003353Z:1043744c-5016-46f5-ac31-70de54a07a58" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/8bbc1442-3ae8-46b4-9dae-c11131a11527?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi84YmJjMTQ0Mi0zYWU4LTQ2YjQtOWRhZS1jMTExMzFhMTE1Mjc/YXBpLXZlcnNpb249MjAxNS0wNS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"8bbc1442-3ae8-46b4-9dae-c11131a11527\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:33:23.7Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:13 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "a9d526c8-f589-4172-aaa8-2c13e28093f5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "a105b1dc-60d4-4778-b25a-26a8234bcfaf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003413Z:a105b1dc-60d4-4778-b25a-26a8234bcfaf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662?api-version=2015-05-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyP2FwaS12ZXJzaW9uPTIwMTUtMDUtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-5662.database.windows.net\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662\",\r\n \"name\": \"sqlcrudtest-5662\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "69b50457-1e3d-44bf-baca-060f57f3d2c1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "52460474-11a7-4154-864b-b268f74d93b5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003414Z:52460474-11a7-4154-864b-b268f74d93b5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/firewallRules/allowAll?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2ZpcmV3YWxsUnVsZXMvYWxsb3dBbGw/YXBpLXZlcnNpb249MjAxNC0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "101" + ], + "x-ms-client-request-id": [ + "fe650a91-c2c3-4218-b8b0-7d9d6476049b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/firewallRules/allowAll\",\r\n \"name\": \"allowAll\",\r\n \"type\": \"Microsoft.Sql/servers/firewallRules\",\r\n \"location\": \"West US 2\",\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"startIpAddress\": \"0.0.0.0\",\r\n \"endIpAddress\": \"255.255.255.255\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "340" + ], + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:15 GMT" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "bf005538-12ae-4f00-9bc1-2d077641aeea" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Preference-Applied": [ + "return-content" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "b6b99950-fe38-4581-8a65-2f34aed90a30" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003415Z:b6b99950-fe38-4581-8a65-2f34aed90a30" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03Mjk/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "x-ms-client-request-id": [ + "75ae504e-5dce-4ebe-b0bd-72d9f7493243" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2018-05-22T00:34:15.62Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:15 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview" + ], + "x-ms-request-id": [ + "2efa3ba5-9356-437d-bc4e-cb6b486163cd" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "818ee8f2-e58b-48eb-9cca-f4691a586455" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003415Z:818ee8f2-e58b-48eb-9cca-f4691a586455" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjNjY0ZGYzLTUwYjMtNDE2ZC04ZGI5LTAxOTMwMDcwZDA1Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc664df3-50b3-416d-8db9-01930070d05c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:34:15.62Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:30 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9cabb080-330b-4158-82f1-436fa1a8e16c" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "bd70e80f-a16a-4902-9e97-93dc94e900a6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003430Z:bd70e80f-a16a-4902-9e97-93dc94e900a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjNjY0ZGYzLTUwYjMtNDE2ZC04ZGI5LTAxOTMwMDcwZDA1Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc664df3-50b3-416d-8db9-01930070d05c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:34:15.62Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:34:45 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e892acb1-359d-4573-9f97-591d227e72e3" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "2fbda759-1ca9-4471-85bc-1c87521dfcdd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003445Z:2fbda759-1ca9-4471-85bc-1c87521dfcdd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/bc664df3-50b3-416d-8db9-01930070d05c?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2JjNjY0ZGYzLTUwYjMtNDE2ZC04ZGI5LTAxOTMwMDcwZDA1Yz9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc664df3-50b3-416d-8db9-01930070d05c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:34:15.62Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "aad871f7-6ee8-40fb-9285-3a7222186ab1" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14993" + ], + "x-ms-correlation-request-id": [ + "97e483b1-65bc-4f66-8a9b-ec627018b9d1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003501Z:97e483b1-65bc-4f66-8a9b-ec627018b9d1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729?api-version=2017-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03Mjk/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 268435456000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"94515d9c-1689-49ff-af72-488495afb2f6\",\r\n \"creationDate\": \"2018-05-22T00:34:15.87Z\",\r\n \"currentServiceObjectiveName\": \"S0\",\r\n \"requestedServiceObjectiveName\": \"S0\",\r\n \"defaultSecondaryLocation\": \"West Central US\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2018-05-22T01:04:56.73Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 10\r\n }\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729\",\r\n \"name\": \"sqlcrudtest-729\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:00 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "9ed3effa-e586-4d09-883b-0aaf74a9fd1d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "2b2a2ced-cc91-4237-99c7-44860233f8e9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003501Z:2b2a2ced-cc91-4237-99c7-44860233f8e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "234" + ], + "x-ms-client-request-id": [ + "defb189d-da07-4b90-b086-eba6ae405aca" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertJobAccount\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "70" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentOperationResults/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview" + ], + "x-ms-request-id": [ + "3a090485-be0f-4cc3-a2d3-0a227156ae05" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "524266eb-e3c9-4276-a684-796b29deb3db" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003502Z:524266eb-e3c9-4276-a684-796b29deb3db" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dff3e84f-80c4-4225-9ea6-ebadd9ec660e" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "9046d73d-6cf2-429c-b828-ea9373f06a31" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003517Z:9046d73d-6cf2-429c-b828-ea9373f06a31" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:31 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ead36652-1878-401a-91fc-4870f22536a9" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "42304577-300d-40f2-a57d-cfa062fa6242" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003532Z:42304577-300d-40f2-a57d-cfa062fa6242" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:35:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fb6610f2-800a-4783-89c3-3e33a3a14196" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "04ff2b90-34cf-49d8-830c-a69f7609b8e4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003547Z:04ff2b90-34cf-49d8-830c-a69f7609b8e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:36:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d7506840-d118-41a4-85f0-25ac20ecd566" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14988" + ], + "x-ms-correlation-request-id": [ + "dfba90ec-807b-43d8-bcf5-ddc2f1e2de10" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003602Z:dfba90ec-807b-43d8-bcf5-ddc2f1e2de10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:36:17 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "83ae62a0-8957-4ac0-a0ed-18953de749f4" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-correlation-request-id": [ + "6dbba3c6-9458-4802-b367-5077d1ab6580" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003617Z:6dbba3c6-9458-4802-b367-5077d1ab6580" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:36:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "fcf9ba7b-d8f7-49bc-bb9e-e684908c1da2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-correlation-request-id": [ + "94ffd1de-d273-4a2d-aab7-c70757c7107f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003632Z:94ffd1de-d273-4a2d-aab7-c70757c7107f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:36:46 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f9d0c9cc-e0a0-48c0-98d1-680bc14320d2" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14985" + ], + "x-ms-correlation-request-id": [ + "267cf64e-5f2d-4222-af61-84d5eda6ae8c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003647Z:267cf64e-5f2d-4222-af61-84d5eda6ae8c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/locations/westus2/jobAgentAzureAsyncOperation/316305bf-ab5c-4cfa-8d6b-b9ec05034b3e?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL3dlc3R1czIvam9iQWdlbnRBenVyZUFzeW5jT3BlcmF0aW9uLzMxNjMwNWJmLWFiNWMtNGNmYS04ZDZiLWI5ZWMwNTAzNGIzZT9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"name\": \"316305bf-ab5c-4cfa-8d6b-b9ec05034b3e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-05-22T00:35:01.59Z\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Retry-After": [ + "15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "c89fe905-d4ef-481e-9bda-ed6df4f2734d" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14984" + ], + "x-ms-correlation-request-id": [ + "b0818d51-49de-448a-baa5-a16e07de40e9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003702Z:b0818d51-49de-448a-baa5-a16e07de40e9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudD9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Agent\",\r\n \"capacity\": 100\r\n },\r\n \"properties\": {\r\n \"databaseId\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/databases/sqlcrudtest-729\",\r\n \"state\": \"Ready\"\r\n },\r\n \"location\": \"westus2\",\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent\",\r\n \"name\": \"agent\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f92d5d44-703a-42e7-884c-b2ea3b035113" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14983" + ], + "x-ms-correlation-request-id": [ + "7280fa62-74a6-4a01-b70d-c200eddb19f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003702Z:7280fa62-74a6-4a01-b70d-c200eddb19f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/credentials/dummylogin?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9jcmVkZW50aWFscy9kdW1teWxvZ2luP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\",\r\n \"password\": \"Un53cuRE!\"\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "88" + ], + "x-ms-client-request-id": [ + "7f210512-2af2-4c03-9c7c-d44b553cf79a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"username\": \"dummylogin\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/credentials/dummylogin\",\r\n \"name\": \"dummylogin\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/credentials\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "292" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "14412671-b59d-465c-8f4f-5c3c8fe9c083" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "c6605456-db41-4c55-87ac-9ba4256601e2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003703Z:c6605456-db41-4c55-87ac-9ba4256601e2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/targetGroups/tg1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC90YXJnZXRHcm91cHMvdGcxP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "227" + ], + "x-ms-client-request-id": [ + "d9b837e3-f576-4ef9-8d13-e21fefddf782" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"members\": [\r\n {\r\n \"membershipType\": \"Include\",\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/targetGroups/tg1\",\r\n \"name\": \"tg1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/targetGroups\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "383" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:03 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "11082cf7-8188-47a0-afa7-24fb4bfc3b87" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "51acb1a1-e423-4082-800d-a89bd4e5f4dd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003703Z:51acb1a1-e423-4082-800d-a89bd4e5f4dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"schedule\": {\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ], + "x-ms-client-request-id": [ + "3c11fc28-704d-4472-963b-7bf3494e1940" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"description\": \"Test description\",\r\n \"version\": 0,\r\n \"schedule\": {\r\n \"startTime\": \"0001-01-01T00:00:00Z\",\r\n \"endTime\": \"9999-12-31T11:59:59Z\",\r\n \"type\": \"Once\",\r\n \"enabled\": true\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1\",\r\n \"name\": \"job1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "397" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:04 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "b355c421-711a-4253-b0e2-ac0e159158af" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "9f89d164-e4c2-4479-92a5-c26f3c11e86a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003704Z:9f89d164-e4c2-4479-92a5-c26f3c11e86a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"value\": \"SELECT 1\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "462" + ], + "x-ms-client-request-id": [ + "ee01b7f2-03b5-4d0c-9c27-c9dcd26ca4c9" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"stepId\": 1,\r\n \"targetGroup\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/targetGroups/tg1\",\r\n \"credential\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/credentials/dummylogin\",\r\n \"action\": {\r\n \"type\": \"TSql\",\r\n \"source\": \"Inline\",\r\n \"value\": \"SELECT 1\"\r\n },\r\n \"executionOptions\": {\r\n \"timeoutSeconds\": 43200,\r\n \"retryAttempts\": 10,\r\n \"initialRetryIntervalSeconds\": 1,\r\n \"maximumRetryIntervalSeconds\": 120,\r\n \"retryIntervalBackoffMultiplier\": 2.0\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/steps\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "869" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "ded1c1a1-f056-4052-9b43-5bacec451707" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "13969d54-9c57-4440-ae63-1d182e870437" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003705Z:13969d54-9c57-4440-ae63-1d182e870437" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/start?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvc3RhcnQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0fc81433-2c4a-4b2d-ba92-9dd37613d576" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Created\",\r\n \"provisioningState\": \"Created\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution created.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:05 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733?api-version=2017-03-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "d8e50032-eea8-4b1a-a049-a34b051d6968" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1191" + ], + "x-ms-correlation-request-id": [ + "f11a7da3-0162-4b8d-9b4f-cf460a8fcbe2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003705Z:f11a7da3-0162-4b8d-9b4f-cf460a8fcbe2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"startTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.9855884Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "76ea196f-c766-4caf-b585-9e52a7bfd9fe" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14982" + ], + "x-ms-correlation-request-id": [ + "a2228e9d-526d-4d1d-859c-8a1a58da6ce3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003735Z:a2228e9d-526d-4d1d-859c-8a1a58da6ce3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "17490c54-99ca-4a2f-963b-81efffa2bd47" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"startTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.9855884Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e0ea31da-bb87-4097-9795-704ef70570d5" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "65d9456d-16bf-41b0-95b5-e50e10294362" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:65d9456d-16bf-41b0-95b5-e50e10294362" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9leGVjdXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae889430-870e-4c47-a34e-037dca9905cc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"startTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.9855884Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"lifecycle\": \"Skipped\",\r\n \"provisioningState\": \"Canceled\",\r\n \"createTime\": \"2018-05-22T00:37:08.575142Z\",\r\n \"startTime\": \"2018-05-22T00:37:11.1065763Z\",\r\n \"endTime\": \"2018-05-22T00:37:24.6210857Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution skipped.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"name\": \"cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "86fe44d7-140f-4a1c-8a41-580e5acf36e7" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "a39cc03f-13f9-4c5a-aff9-f9c394cc5a05" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:a39cc03f-13f9-4c5a-aff9-f9c394cc5a05" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e46d0ece-42eb-469a-9984-ba10b351070e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:05.48Z\",\r\n \"startTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.9855884Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"name\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"jobExecutionId\": \"cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"lifecycle\": \"Skipped\",\r\n \"provisioningState\": \"Canceled\",\r\n \"createTime\": \"2018-05-22T00:37:08.575142Z\",\r\n \"startTime\": \"2018-05-22T00:37:11.1065763Z\",\r\n \"endTime\": \"2018-05-22T00:37:24.6210857Z\",\r\n \"currentAttempts\": 0,\r\n \"lastMessage\": \"Job execution skipped.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"name\": \"cfb04edc-faa1-4b00-b151-ebbd186a3896\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "38c73067-f73f-423b-8da4-ad9cbc867518" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14980" + ], + "x-ms-correlation-request-id": [ + "0470d0e6-b1dd-4fe4-a21b-64570ad0ef02" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:0470d0e6-b1dd-4fe4-a21b-64570ad0ef02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvc3RlcHM/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "374b35bf-5e38-4864-95e9-750d87ed677a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"startTime\": \"2018-05-22T00:37:11.0909488Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.5497743Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:19.418905Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:35 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3ad96342-38c0-4a48-989d-842402131495" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "b56d1cab-7963-40fc-89ad-5ef41e9f8bb5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:b56d1cab-7963-40fc-89ad-5ef41e9f8bb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvc3RlcHMvc3RlcDE/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "62fadd18-d61a-441b-8d58-2011857a2952" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:09.8409224Z\",\r\n \"startTime\": \"2018-05-22T00:37:11.0909488Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.5497743Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:19.418905Z\",\r\n \"lastMessage\": \"Step 1 succeeded.\"\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1\",\r\n \"name\": \"step1\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2f56244b-d271-4b6d-be2d-c57667d6eaad" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14977" + ], + "x-ms-correlation-request-id": [ + "805361b9-bae7-4d3c-9378-541dc7240968" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003736Z:805361b9-bae7-4d3c-9378-541dc7240968" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "28224b59-8f36-4ae2-9a95-4b19606470fc" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:20.4666667Z\",\r\n \"startTime\": \"2018-05-22T00:37:21.7157639Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.254897Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:21.747049Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-5662', database 'sqlcrudtest-729').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets/d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"name\": \"d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "4052c751-172b-4063-a287-55b0f920608a" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14976" + ], + "x-ms-correlation-request-id": [ + "a3fa9755-e90c-48ba-8755-c5b00687cbae" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003737Z:a3fa9755-e90c-48ba-8755-c5b00687cbae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvc3RlcHMvc3RlcDEvdGFyZ2V0cz9hcGktdmVyc2lvbj0yMDE3LTAzLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7073068b-abf1-4b63-923a-aa94d5f134d2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:20.4666667Z\",\r\n \"startTime\": \"2018-05-22T00:37:21.7157639Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.254897Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:21.747049Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-5662', database 'sqlcrudtest-729').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets/d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"name\": \"d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "70b68dcb-3b89-47e9-97d6-51cc375cfe39" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14975" + ], + "x-ms-correlation-request-id": [ + "76c8bb6e-6dcb-406c-b70c-11380694b92f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003737Z:76c8bb6e-6dcb-406c-b70c-11380694b92f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets/d214f7ae-6353-44f1-92ce-a50b114f6eed?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvc3RlcHMvc3RlcDEvdGFyZ2V0cy9kMjE0ZjdhZS02MzUzLTQ0ZjEtOTJjZS1hNTBiMTE0ZjZlZWQ/YXBpLXZlcnNpb249MjAxNy0wMy0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b002124d-5b50-4f19-a3a1-1e6471db9b1e" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"jobVersion\": 1,\r\n \"stepName\": \"step1\",\r\n \"stepId\": 1,\r\n \"jobExecutionId\": \"e01eea78-9f6d-4c07-bd57-6ccd94b3c733\",\r\n \"lifecycle\": \"Succeeded\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2018-05-22T00:37:20.4666667Z\",\r\n \"startTime\": \"2018-05-22T00:37:21.7157639Z\",\r\n \"endTime\": \"2018-05-22T00:37:25.254897Z\",\r\n \"currentAttempts\": 1,\r\n \"currentAttemptStartTime\": \"2018-05-22T00:37:21.747049Z\",\r\n \"lastMessage\": \"Step 1 succeeded execution on target (server 'sqlcrudtest-5662', database 'sqlcrudtest-729').\",\r\n \"target\": {\r\n \"type\": \"SqlDatabase\",\r\n \"serverName\": \"sqlcrudtest-5662\",\r\n \"databaseName\": \"sqlcrudtest-729\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/steps/step1/targets/d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"name\": \"d214f7ae-6353-44f1-92ce-a50b114f6eed\",\r\n \"type\": \"Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets\"\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:36 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "f67df1d5-0ddd-4259-b3cf-51f71d979065" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14974" + ], + "x-ms-correlation-request-id": [ + "7525fa81-6d03-4263-ae5c-e38aae575ea1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003737Z:7525fa81-6d03-4263-ae5c-e38aae575ea1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733/cancel?api-version=2017-03-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTczNzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01NjYyL2pvYkFnZW50cy9hZ2VudC9qb2JzL2pvYjEvZXhlY3V0aW9ucy9lMDFlZWE3OC05ZjZkLTRjMDctYmQ1Ny02Y2NkOTRiM2M3MzMvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTctMDMtMDEtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d21c8b7-c72e-43cb-bcd2-84ed1557aa28" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.16.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:37 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourceGroups/sqlcrudtest-7377/providers/Microsoft.Sql/servers/sqlcrudtest-5662/jobAgents/agent/jobs/job1/executions/e01eea78-9f6d-4c07-bd57-6ccd94b3c733?api-version=2017-03-01-preview" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-request-id": [ + "2c06f114-7be3-4694-be73-facdecf33419" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "ba9c0c90-e44d-42ba-8ec6-47562440cbc3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003738Z:ba9c0c90-e44d-42ba-8ec6-47562440cbc3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7377?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczNzc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dbe89ac1-6665-4350-a7f2-1729ad6b3990" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczNzctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "520ec097-a6a1-46f3-a0bb-bd5760e0746e" + ], + "x-ms-correlation-request-id": [ + "520ec097-a6a1-46f3-a0bb-bd5760e0746e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003738Z:520ec097-a6a1-46f3-a0bb-bd5760e0746e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/resourcegroups/sqlcrudtest-7377?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWIxMzJmYmMtZGY2MS00ZGQ4LWJiYTAtNzFkN2Q0Mjc3ZWRhL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTczNzc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e3ee19a7-7373-4dae-ba2b-b2b0ef6a9307" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 22 May 2018 00:37:38 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1b132fbc-df61-4dd8-bba0-71d7d4277eda/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDczNzctV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "b392bc4b-de0b-4be0-9ca5-4183579ab29a" + ], + "x-ms-correlation-request-id": [ + "b392bc4b-de0b-4be0-9ca5-4183579ab29a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20180522T003738Z:b392bc4b-de0b-4be0-9ca5-4183579ab29a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-7377" + ], + "CreateServer": [ + "sqlcrudtest-5662" + ], + "TestStartStopGetJobExecution": [ + "sqlcrudtest-729" + ] + }, + "Variables": { + "DefaultLocation": "west us 2", + "SubscriptionId": "1b132fbc-df61-4dd8-bba0-71d7d4277eda" + } +} \ No newline at end of file