diff --git a/src/Accounts/Accounts/ChangeLog.md b/src/Accounts/Accounts/ChangeLog.md index 106216c61a75..ec51c9c65751 100644 --- a/src/Accounts/Accounts/ChangeLog.md +++ b/src/Accounts/Accounts/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Updated Azure PowerShell survey URL in `Resolve-AzError` [#11507] ## Version 1.7.4 * Fixed `Get-AzTenant`/`Get-AzDefault`/`Set-AzDefault` throw NullReferenceException when not login [#10292] diff --git a/src/Accounts/Accounts/Common/AzureProfileConstants.cs b/src/Accounts/Accounts/Common/AzureProfileConstants.cs index 40071b637792..4db9a9032f14 100644 --- a/src/Accounts/Accounts/Common/AzureProfileConstants.cs +++ b/src/Accounts/Accounts/Common/AzureProfileConstants.cs @@ -22,7 +22,9 @@ public static class AzureProfileConstants public const string AzureSurveyUrl = "https://aka.ms/azpssurvey?Q_CHL=FEEDBACK"; - public static readonly string AzurePowerShellFeedbackMessage = string.Format(Resources.AzurePowerShellFeedback, AzureProfileConstants.AzureSurveyUrl); + public const string AzureSurveyUrlForError = "https://aka.ms/azpssurvey?Q_CHL=ERROR"; + + public static readonly string AzurePowerShellFeedbackMessage = string.Format(Resources.AzurePowerShellFeedback, AzureProfileConstants.AzureSurveyUrlForError); public static readonly string AzurePowerShellFeedbackQuestion = string.Format(Resources.SendFeedbackOpenLinkAutomatically, AzureProfileConstants.AzureSurveyUrl); diff --git a/src/Attestation/Attestation.Test/ScenarioTests/AttstationPolicyTests.ps1 b/src/Attestation/Attestation.Test/ScenarioTests/AttstationPolicyTests.ps1 index b37b50edb03c..7512f0b42e01 100644 --- a/src/Attestation/Attestation.Test/ScenarioTests/AttstationPolicyTests.ps1 +++ b/src/Attestation/Attestation.Test/ScenarioTests/AttstationPolicyTests.ps1 @@ -37,7 +37,11 @@ function Test-GetAttestationPolicy Assert-NotNull $attestationCreated.Status $getPolicy = Get-AzAttestationPolicy -Name $attestationProviderName -ResourceGroupName $rgName.ResourceGroupName -Tee $teeType - Assert-NotNull $getPolicy + Assert-NotNull $getPolicy.Jwt + Assert-NotNull $getPolicy.Text + Assert-AreEqual "none" $getPolicy.Algorithm + Assert-True { $getPolicy.JwtLength -gt 0 } + Assert-True { $getPolicy.TextLength -gt 0 } } finally @@ -93,7 +97,8 @@ function Test-SetAttestationPolicy $attestationProviderName = getAssetName $location = "East US" $teeType = "SgxEnclave" - $policyDocument = "eyJhbGciOiJub25lIn0.eyJBdHRlc3RhdGlvblBvbGljeSI6ICJ7XHJcbiAgICBcIiR2ZXJzaW9uXCI6IDEsXHJcbiAgICBcIiRhbGxvdy1kZWJ1Z2dhYmxlXCIgOiB0cnVlLFxyXG4gICAgXCIkY2xhaW1zXCI6W1xyXG4gICAgICAgIFwiaXMtZGVidWdnYWJsZVwiICxcclxuICAgICAgICBcInNneC1tcnNpZ25lclwiLFxyXG4gICAgICAgIFwic2d4LW1yZW5jbGF2ZVwiLFxyXG4gICAgICAgIFwicHJvZHVjdC1pZFwiLFxyXG4gICAgICAgIFwic3ZuXCIsXHJcbiAgICAgICAgXCJ0ZWVcIixcclxuICAgICAgICBcIk5vdERlYnVnZ2FibGVcIlxyXG4gICAgXSxcclxuICAgIFwiTm90RGVidWdnYWJsZVwiOiB7XCJ5ZXNcIjp7XCIkaXMtZGVidWdnYWJsZVwiOnRydWUsIFwiJG1hbmRhdG9yeVwiOnRydWUsIFwiJHZpc2libGVcIjpmYWxzZX19LFxyXG4gICAgXCJpcy1kZWJ1Z2dhYmxlXCIgOiBcIiRpcy1kZWJ1Z2dhYmxlXCIsXHJcbiAgICBcInNneC1tcnNpZ25lclwiIDogXCIkc2d4LW1yc2lnbmVyXCIsXHJcbiAgICBcInNneC1tcmVuY2xhdmVcIiA6IFwiJHNneC1tcmVuY2xhdmVcIixcclxuICAgIFwicHJvZHVjdC1pZFwiIDogXCIkcHJvZHVjdC1pZFwiLFxyXG4gICAgXCJzdm5cIiA6IFwiJHN2blwiLFxyXG4gICAgXCJ0ZWVcIiA6IFwiJHRlZVwiXHJcbn0ifQ." + $policyJwt = "eyJhbGciOiJub25lIn0.eyJBdHRlc3RhdGlvblBvbGljeSI6ICJ7XHJcbiAgICBcIiR2ZXJzaW9uXCI6IDEsXHJcbiAgICBcIiRhbGxvdy1kZWJ1Z2dhYmxlXCIgOiB0cnVlLFxyXG4gICAgXCIkY2xhaW1zXCI6W1xyXG4gICAgICAgIFwiaXMtZGVidWdnYWJsZVwiICxcclxuICAgICAgICBcInNneC1tcnNpZ25lclwiLFxyXG4gICAgICAgIFwic2d4LW1yZW5jbGF2ZVwiLFxyXG4gICAgICAgIFwicHJvZHVjdC1pZFwiLFxyXG4gICAgICAgIFwic3ZuXCIsXHJcbiAgICAgICAgXCJ0ZWVcIixcclxuICAgICAgICBcIk5vdERlYnVnZ2FibGVcIlxyXG4gICAgXSxcclxuICAgIFwiTm90RGVidWdnYWJsZVwiOiB7XCJ5ZXNcIjp7XCIkaXMtZGVidWdnYWJsZVwiOnRydWUsIFwiJG1hbmRhdG9yeVwiOnRydWUsIFwiJHZpc2libGVcIjpmYWxzZX19LFxyXG4gICAgXCJpcy1kZWJ1Z2dhYmxlXCIgOiBcIiRpcy1kZWJ1Z2dhYmxlXCIsXHJcbiAgICBcInNneC1tcnNpZ25lclwiIDogXCIkc2d4LW1yc2lnbmVyXCIsXHJcbiAgICBcInNneC1tcmVuY2xhdmVcIiA6IFwiJHNneC1tcmVuY2xhdmVcIixcclxuICAgIFwicHJvZHVjdC1pZFwiIDogXCIkcHJvZHVjdC1pZFwiLFxyXG4gICAgXCJzdm5cIiA6IFwiJHN2blwiLFxyXG4gICAgXCJ0ZWVcIiA6IFwiJHRlZVwiXHJcbn0ifQ." + $policyText = 'version= 1.0;authorizationrules{c:[type=="$is-debuggable"] => permit();};issuancerules{c:[type=="$is-debuggable"] => issue(type="is-debuggable", value=c.value);c:[type=="$sgx-mrsigner"] => issue(type="sgx-mrsigner", value=c.value);c:[type=="$sgx-mrenclave"] => issue(type="sgx-mrenclave", value=c.value);c:[type=="$product-id"] => issue(type="product-id", value=c.value);c:[type=="$svn"] => issue(type="svn", value=c.value);c:[type=="$tee"] => issue(type="tee", value=c.value);c:[type=="$tee-future"] => issue(type="tee-future", value=c.value);};' # Prevent this script from inadvertantly running in Record or Playback modes try @@ -121,7 +126,10 @@ function Test-SetAttestationPolicy Assert-NotNull $attestationCreated.Status # NOTE: Set-AzAttestionPolicy does not work in recording/playback mode because the recorded JWT token expires and then fails validation - $setPolicyResponse = Set-AzAttestationPolicy -Name $attestationProviderName -ResourceGroupName $rgName.ResourceGroupName -Tee $teeType -Policy $policyDocument -PassThru + $setPolicyResponse = Set-AzAttestationPolicy -Name $attestationProviderName -ResourceGroupName $rgName.ResourceGroupName -Tee $teeType -Policy $policyJwt -PolicyFormat Jwt -PassThru + Assert-AreEqual $setPolicyResponse $true + + $setPolicyResponse = Set-AzAttestationPolicy -Name $attestationProviderName -ResourceGroupName $rgName.ResourceGroupName -Tee $teeType -Policy $policyText -PassThru Assert-AreEqual $setPolicyResponse $true } diff --git a/src/Attestation/Attestation/ChangeLog.md b/src/Attestation/Attestation/ChangeLog.md index 517f736ba4db..081eff30acb5 100644 --- a/src/Attestation/Attestation/ChangeLog.md +++ b/src/Attestation/Attestation/ChangeLog.md @@ -20,6 +20,7 @@ ## Upcoming Release +* Added text based policy support to policy cmdlets ## Version 0.1.6 * Improved error messages for server response codes 400 and 401 diff --git a/src/Attestation/Attestation/Commands/GetAzureAttestationPolicy.cs b/src/Attestation/Attestation/Commands/GetAzureAttestationPolicy.cs index 7108ee50a02e..6bb02ba0c7c1 100644 --- a/src/Attestation/Attestation/Commands/GetAzureAttestationPolicy.cs +++ b/src/Attestation/Attestation/Commands/GetAzureAttestationPolicy.cs @@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Attestation /// Get AttestationPolicy. /// [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AttestationPolicy", SupportsShouldProcess = true)] - [OutputType(typeof(String))] + [OutputType(typeof(PSPolicy))] public class GetAzureAttestationPolicy : AttestationDataServiceCmdletBase { #region Input Parameter Definitions @@ -79,7 +79,7 @@ public class GetAzureAttestationPolicy : AttestationDataServiceCmdletBase public override void ExecuteCmdlet() { String policy = AttestationDataPlaneClient.GetPolicy(Name, ResourceGroupName, ResourceId, Tee); - WriteObject(policy); + WriteObject(new PSPolicy(policy)); } } } diff --git a/src/Attestation/Attestation/Commands/SetAzureAttestationPolicy.cs b/src/Attestation/Attestation/Commands/SetAzureAttestationPolicy.cs index dee7587b7311..9a11825049c4 100644 --- a/src/Attestation/Attestation/Commands/SetAzureAttestationPolicy.cs +++ b/src/Attestation/Attestation/Commands/SetAzureAttestationPolicy.cs @@ -68,22 +68,33 @@ public class SetAzureAttestationPolicy : AttestationDataServiceCmdletBase /// [Parameter(Mandatory = true, HelpMessage = - "Specifies a type of Trusted Execution Environment. We support four types of environment: SgxEnclave, OpenEnclave, CyResComponent and VBSEnclave." + "Specifies a type of Trusted Execution Environment. Four types of environment are supported: SgxEnclave, OpenEnclave, CyResComponent and VBSEnclave." )] [PSArgumentCompleter("SgxEnclave", "OpenEnclave", "CyResComponent", "VBSEnclave")] [ValidateNotNullOrEmpty] public string Tee { get; set; } /// - /// JSON Web Token + /// Policy document /// [Parameter(Mandatory = true, HelpMessage = - "Specifies the JSON Web Token describing the policy document to set." + "Specifies the policy document to set. The policy format can be either Text or JSON Web Token (JWT)." )] [ValidateNotNullOrEmpty] public string Policy { get; set; } + /// + /// Format of the policy document + /// + [Parameter(Mandatory = false, + HelpMessage = + "Specifies the format for the policy, either Text or JWT (JSON Web Token). The default policy format is Text." + )] + [PSArgumentCompleter(TextPolicyFormat, JwtPolicyFormat)] + [PSDefaultValue(Value = TextPolicyFormat)] + public string PolicyFormat { get; set; } + [Parameter(Mandatory = false, HelpMessage = "This Cmdlet does not return an object by default. If this switch is specified, it returns true if successful.")] public SwitchParameter PassThru { get; set; } @@ -94,12 +105,15 @@ public override void ExecuteCmdlet() { if (ShouldProcess(Name, "SetAttestationPolicy")) { - AttestationDataPlaneClient.SetPolicy(Name, ResourceGroupName, ResourceId, Tee, Policy); + AttestationDataPlaneClient.SetPolicy(Name, ResourceGroupName, ResourceId, Tee, Policy, PolicyFormat); if (PassThru) { WriteObject(true); } } } + + internal const string JwtPolicyFormat = "JWT"; + internal const string TextPolicyFormat = "Text"; } } \ No newline at end of file diff --git a/src/Attestation/Attestation/Models/AttestationDataServiceClient.cs b/src/Attestation/Attestation/Models/AttestationDataServiceClient.cs index 130283b88d8b..dcf53888ab51 100644 --- a/src/Attestation/Attestation/Models/AttestationDataServiceClient.cs +++ b/src/Attestation/Attestation/Models/AttestationDataServiceClient.cs @@ -48,26 +48,29 @@ public AttestationDataServiceClient(IAuthenticationFactory authFactory, IAzureCo _attestationControlPlaneClient = AzureSession.Instance.ClientFactory.CreateArmClient(context, AzureEnvironment.Endpoint.ResourceManager); } - public void SetPolicy(string name, string resourceGroupName, string resourceId, string tee, string policyJwt) + public void SetPolicy(string name, string resourceGroupName, string resourceId, string tee, string userSpecifiedPolicy, string policyFormat) { ValidateCommonParameters(ref name, ref resourceGroupName, resourceId); if (string.IsNullOrEmpty(tee)) throw new ArgumentNullException(nameof(tee)); - if (string.IsNullOrEmpty(policyJwt)) - throw new ArgumentNullException(nameof(policyJwt)); + if (string.IsNullOrEmpty(userSpecifiedPolicy)) + throw new ArgumentNullException(nameof(userSpecifiedPolicy)); - // Step #1 - Ask service to prepare to set policy + // Step #1 - Convert text policy to JWT if necessary + var processedPolicy = GenerateJwtPolicyIfNeeded(policyFormat, userSpecifiedPolicy); + + // Step #2 - Ask service to prepare to set policy AzureOperationResponse serviceCallResult = RefreshUriCacheAndRetryOnFailure(name, resourceGroupName, (tenantUri) => - _attestationDataPlaneClient.Policy.PrepareToSetWithHttpMessagesAsync(tenantUri, tee, policyJwt).Result); + _attestationDataPlaneClient.Policy.PrepareToSetWithHttpMessagesAsync(tenantUri, tee, processedPolicy).Result); ThrowOn4xxErrors(serviceCallResult); - // Step #2 - Validate service response locally + // Step #3 - Validate service response locally string policyUpdateJwt = serviceCallResult.Body.ToString(); var validatedToken = PolicyValidationHelper.ValidateAttestationServiceToken(name, DataPlaneUriLookup[(name, resourceGroupName)], policyUpdateJwt); if (!validatedToken.IsValid) throw new ArgumentException("policyJwt is not valid"); - // Step #3 - Ask service to set policy + // Step #4 - Ask service to set policy serviceCallResult = RefreshUriCacheAndRetryOnFailure(name, resourceGroupName, (tenantUri) => _attestationDataPlaneClient.Policy.SetWithHttpMessagesAsync(tenantUri, tee, policyUpdateJwt).Result); ThrowOn4xxErrors(serviceCallResult); @@ -133,6 +136,36 @@ public string RemovePolicySigner(string name, string resourceGroupName, string r #region Private helper methods + private string GenerateJwtPolicyIfNeeded(string policyFormat, string userSpecifiedPolicy) + { + var processedPolicy = string.Empty; + if (string.IsNullOrEmpty(policyFormat) || + SetAzureAttestationPolicy.TextPolicyFormat.Equals(policyFormat, StringComparison.InvariantCultureIgnoreCase)) + { + processedPolicy = this.GenerateJwtPolicy(userSpecifiedPolicy); + } + else if (SetAzureAttestationPolicy.JwtPolicyFormat.Equals(policyFormat, StringComparison.InvariantCultureIgnoreCase)) + { + processedPolicy = userSpecifiedPolicy; + } + else + { + throw new ArgumentException(nameof(policyFormat)); + } + + return processedPolicy; + } + + private string GenerateJwtPolicy(string textPolicy) + { + var header = Base64Url.EncodeString("{\"alg\":\"none\"}"); + var encodedPolicy = Base64Url.EncodeString(textPolicy); + var bodyText = "{\"AttestationPolicy\": \"" + encodedPolicy + "\"}"; + var body = Base64Url.EncodeString(bodyText); + + return $"{header}.{body}."; + } + private void ValidateCommonParameters(ref string name, ref string resourceGroupName, string resourceId) { if (!string.IsNullOrEmpty(resourceId)) diff --git a/src/Attestation/Attestation/Models/Base64Url.cs b/src/Attestation/Attestation/Models/Base64Url.cs index 61d87eb7dda4..de87818354da 100644 --- a/src/Attestation/Attestation/Models/Base64Url.cs +++ b/src/Attestation/Attestation/Models/Base64Url.cs @@ -13,23 +13,40 @@ // ---------------------------------------------------------------------------------- using System; +using System.Text; namespace Microsoft.Azure.Commands.Attestation.Models { public static class Base64Url { + /// Encode a string as a Base64URL encoded string. + /// String input buffer. + /// The UTF8 bytes for the string, encoded as a Base64URL string. + public static string EncodeString(string value) + { + return EncodeBytes(UTF8Encoding.UTF8.GetBytes(value)); + } + /// Encode a byte array as a Base64URL encoded string. /// Raw byte input buffer. /// The bytes, encoded as a Base64URL string. - public static string Encode(byte[] bytes) + public static string EncodeBytes(byte[] bytes) { return Convert.ToBase64String(bytes).TrimEnd('=').Replace('+', '-').Replace('/', '_'); } + /// Converts a Base64URL encoded string to a string + /// The Base64Url encoded string containing UTF8 bytes for a string + /// The string represented by the Base64URL encoded string + public static string DecodeString(string encoded) + { + return UTF8Encoding.UTF8.GetString(DecodeBytes(encoded)); + } + /// Converts a Base64URL encoded string to a byte array /// The Base64Url encoded string /// The byte array represented by the Base64URL encoded string - public static byte[] Decode(string encoded) + public static byte[] DecodeBytes(string encoded) { encoded = encoded.Replace('-', '+').Replace('_', '/'); encoded = FixPadding(encoded); diff --git a/src/Attestation/Attestation/Models/JoseHelper.cs b/src/Attestation/Attestation/Models/JoseHelper.cs new file mode 100644 index 000000000000..b6a1b21b386b --- /dev/null +++ b/src/Attestation/Attestation/Models/JoseHelper.cs @@ -0,0 +1,34 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Newtonsoft.Json.Linq; + +namespace Microsoft.Azure.Commands.Attestation.Models +{ + internal class JoseHelper + { + public static JObject ExtractJosePart(string jwt, int partIndex) + { + string[] joseParts = jwt.Split('.'); + var decodedPart = Base64Url.DecodeString(joseParts[partIndex]); + JObject jsonPart = JObject.Parse(decodedPart); + return jsonPart; + } + public static JToken ExtractJosePartField(string jwt, int partIndex, string fieldName) + { + var part = ExtractJosePart(jwt, partIndex); + return part[fieldName]; + } + } +} diff --git a/src/Attestation/Attestation/Models/PSPolicy.cs b/src/Attestation/Attestation/Models/PSPolicy.cs new file mode 100644 index 000000000000..fc5bdfe122cb --- /dev/null +++ b/src/Attestation/Attestation/Models/PSPolicy.cs @@ -0,0 +1,82 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; + +namespace Microsoft.Azure.Commands.Attestation.Models +{ + public class PSPolicy + { + public PSPolicy(string jwt) + { + Jwt = jwt; + JwtLength = Jwt?.Length ?? 0; + Text = ExtractPolicyText(Jwt); + TextLength = Text?.Length ?? 0; + Algorithm = ExtractAlgorithm(Jwt); + } + + public string Text { get; } + + public int TextLength { get; } + + public string Jwt { get; } + + public int JwtLength { get; } + + public string Algorithm { get; protected set; } + + private static string ExtractAlgorithm(string jwt) + { + var algorithm = string.Empty; + if (!string.IsNullOrEmpty(jwt)) + { + try + { + algorithm = JoseHelper.ExtractJosePartField(jwt, 0, "alg").ToString(); + } + catch (Exception) + { + // Ignore on purpose + } + } + return algorithm; + } + + private static string ExtractPolicyText(string jwt) + { + string parsedPolicy = string.Empty; + + if (!string.IsNullOrEmpty(jwt)) + { + try + { + parsedPolicy = JoseHelper.ExtractJosePartField(jwt, 1, "AttestationPolicy").ToString(); + + // Policy is optionally double base64 URL encoded. We will attempt + // to base64 URL decode a second time -- if this throws an exception, + // that's OK -- we should just use value as it stands now. + var doubleDecodedPolicy = Base64Url.DecodeString(parsedPolicy); + parsedPolicy = doubleDecodedPolicy; + } + catch (Exception) + { + // Ignore on purpose + } + } + + return parsedPolicy; + } + } +} \ No newline at end of file diff --git a/src/Attestation/Attestation/Models/PSPolicySigners.cs b/src/Attestation/Attestation/Models/PSPolicySigners.cs index c6216f1d0899..adcd51b4e7c8 100644 --- a/src/Attestation/Attestation/Models/PSPolicySigners.cs +++ b/src/Attestation/Attestation/Models/PSPolicySigners.cs @@ -12,6 +12,7 @@ // limitations under the License. // ---------------------------------------------------------------------------------- +using System; using System.Linq; using System.Reflection; using System.Text; @@ -39,36 +40,45 @@ public PSPolicySigners(string jwt) public string[] Certificates { get; protected set; } - private static JObject ExtractJosePart(string jwt, int partIndex) - { - string[] joseParts = jwt.Split('.'); - var decodedBody = Encoding.UTF8.GetString(Base64Url.Decode(joseParts[partIndex])); - JObject jsonBody = JObject.Parse(decodedBody); - return jsonBody; - } - private static (string algorithm, string jku) ExtractHeaders(string jwt) { var algorithm = ""; var jku = ""; if (!string.IsNullOrEmpty(jwt)) { - var parsedHeader = ExtractJosePart(jwt, 0); - algorithm = parsedHeader["alg"].ToString(); - jku = parsedHeader["jku"].ToString(); + try + { + var parsedHeader = JoseHelper.ExtractJosePart(jwt, 0); + algorithm = parsedHeader["alg"].ToString(); + jku = parsedHeader["jku"].ToString(); + } + catch (Exception) + { + // Ignore on purpose + } } return (algorithm, jku); } + private static string[] ExtractCertificates(string jwt) { - if (string.IsNullOrEmpty(jwt)) + string[] certificates = new string[0]; + + if (!string.IsNullOrEmpty(jwt)) { - return new string[0]; + try + { + var parsedBody = JoseHelper.ExtractJosePart(jwt, 1); + var parsedCertificates = parsedBody["aas-policyCertificates"]["keys"].ToArray(); + certificates = parsedCertificates.Select(c => c.ToString()).ToArray(); + } + catch (Exception) + { + // Ignore on purpose + } } - var parsedBody = ExtractJosePart(jwt, 1); - var parsedCertificates = parsedBody["aas-policyCertificates"]["keys"].ToArray(); - return parsedCertificates.Select(c => c.ToString()).ToArray(); + return certificates; } } } \ No newline at end of file diff --git a/src/Attestation/Attestation/Models/PolicyValidationHelper.cs b/src/Attestation/Attestation/Models/PolicyValidationHelper.cs index 84466259ae94..283778e4cf7c 100644 --- a/src/Attestation/Attestation/Models/PolicyValidationHelper.cs +++ b/src/Attestation/Attestation/Models/PolicyValidationHelper.cs @@ -88,7 +88,7 @@ private static JsonWebKeySet RetrieveTrustedSigningKeys(string policyJwt, string { // Parse attestation service trusted signing key discovery endpoint from JWT header jku field var jwt = new JsonWebToken(policyJwt); - var jsonHeaderBytes = Base64Url.Decode(jwt.EncodedHeader); + var jsonHeaderBytes = Base64Url.DecodeBytes(jwt.EncodedHeader); var jsonHeaderString = Encoding.UTF8.GetString(jsonHeaderBytes); var jsonHeader = JObject.Parse(jsonHeaderString); var jkuUri = jsonHeader.SelectToken("jku"); diff --git a/src/Attestation/Attestation/help/Get-AzAttestationPolicy.md b/src/Attestation/Attestation/help/Get-AzAttestationPolicy.md index 95d731c61f8f..61557fa7f15e 100644 --- a/src/Attestation/Attestation/help/Get-AzAttestationPolicy.md +++ b/src/Attestation/Attestation/help/Get-AzAttestationPolicy.md @@ -31,8 +31,25 @@ The Get-AzAttestationPolicy cmdlet gets the policy from a tenant in Azure Attest ### Example 1 ```powershell -PS C:\> Get-AzAttestationPolicy -Name pshtest -ResourceGroupName psh-test-rg -Tee SgxEnclave -eyJhbGciOiJub25lIn0.eyJBdHRlc3RhdGlvblBvbGljeSI6ICJkbVZ5YzJsdmJqMGdNUzR3TzJGMWRHaHZjbWw2WVhScGIyNXlkV3hsYzN0ak9sdDBlWEJsUFQwaUpHbHpMV1JsWW5WbloyRmliR1VpWFNBOVBpQndaWEp0YVhRb0tUdDlPMmx6YzNWaGJtTmxjblZzWlhON1l6cGJkSGx3WlQwOUlpUnBjeTFrWldKMVoyZGhZbXhsSWwwZ1BUNGdhWE56ZFdVb2RIbHdaVDBpYVhNdFpHVmlkV2RuWVdKc1pTSXNJSFpoYkhWbFBXTXVkbUZzZFdVcE8yTTZXM1I1Y0dVOVBTSWtjMmQ0TFcxeWMybG5ibVZ5SWwwZ1BUNGdhWE56ZFdVb2RIbHdaVDBpYzJkNExXMXljMmxuYm1WeUlpd2dkbUZzZFdVOVl5NTJZV3gxWlNrN1l6cGJkSGx3WlQwOUlpUnpaM2d0YlhKbGJtTnNZWFpsSWwwZ1BUNGdhWE56ZFdVb2RIbHdaVDBpYzJkNExXMXlaVzVqYkdGMlpTSXNJSFpoYkhWbFBXTXVkbUZzZFdVcE8yTTZXM1I1Y0dVOVBTSWtjSEp2WkhWamRDMXBaQ0pkSUQwLUlHbHpjM1ZsS0hSNWNHVTlJbkJ5YjJSMVkzUXRhV1FpTENCMllXeDFaVDFqTG5aaGJIVmxLVHRqT2x0MGVYQmxQVDBpSkhOMmJpSmRJRDAtSUdsemMzVmxLSFI1Y0dVOUluTjJiaUlzSUhaaGJIVmxQV011ZG1Gc2RXVXBPMk02VzNSNWNHVTlQU0lrZEdWbElsMGdQVDRnYVhOemRXVW9kSGx3WlQwaWRHVmxJaXdnZG1Gc2RXVTlZeTUyWVd4MVpTazdmVHMifQ. +PS C:\> Get-AzAttestationPolicy -Name pshtest -ResourceGroupName psh-test-rg -Tee SgxEnclave +Text : version= 1.0; + authorizationrules{ + c:[type=="$is-debuggable"] => permit(); + }; + issuancerules{ + c:[type=="$is-debuggable"] => issue(type="is-debuggable", value=c.value); + c:[type=="$sgx-mrsigner"] => issue(type="sgx-mrsigner", value=c.value); + c:[type=="$sgx-mrenclave"] => issue(type="sgx-mrenclave", value=c.value); + c:[type=="$product-id"] => issue(type="product-id", value=c.value); + c:[type=="$svn"] => issue(type="svn", value=c.value); + c:[type=="$tee"] => issue(type="tee", value=c.value); + c:[type=="$tee-future"] => issue(type="tee-future", value=c.value); + }; + +TextLength : 604 +Jwt : eyJhbGciOiJub25lIn0.eyJBdHRlc3RhdGlvblBvbGljeSI6ICJkbVZ5YzJsdmJqMGdNUzR3T3cwS1lYVjBhRzl5YVhwaGRHbHZibkoxYkdWemV3MEtJQ0FnSUdNNlczUjVjR1U5UFNJa2FYTXRaR1ZpZFdkbllXSnNaU0pkSUQwLUlIQmxjbTFwZENncE93MEtmVHNOQ21semMzVmhibU5sY25Wc1pYTjdEUW9nSUNBZ1l6cGJkSGx3WlQwOUlpUnBjeTFrWldKMVoyZGhZbXhsSWwwZ1BUNGdhWE56ZFdVb2RIbHdaVDBpYVhNdFpHVmlkV2RuWVdKc1pTSXNJSFpoYkhWbFBXTXVkbUZzZFdVcE93MEtJQ0FnSUdNNlczUjVjR1U5UFNJa2MyZDRMVzF5YzJsbmJtVnlJbDBnUFQ0Z2FYTnpkV1VvZEhsd1pUMGljMmQ0TFcxeWMybG5ibVZ5SWl3Z2RtRnNkV1U5WXk1MllXeDFaU2s3RFFvZ0lDQWdZenBiZEhsd1pUMDlJaVJ6WjNndGJYSmxibU5zWVhabElsMGdQVDRnYVhOemRXVW9kSGx3WlQwaWMyZDRMVzF5Wlc1amJHRjJaU0lzSUhaaGJIVmxQV011ZG1Gc2RXVXBPdzBLSUNBZ0lHTTZXM1I1Y0dVOVBTSWtjSEp2WkhWamRDMXBaQ0pkSUQwLUlHbHpjM1ZsS0hSNWNHVTlJbkJ5YjJSMVkzUXRhV1FpTENCMllXeDFaVDFqTG5aaGJIVmxLVHNOQ2lBZ0lDQmpPbHQwZVhCbFBUMGlKSE4yYmlKZElEMC1JR2x6YzNWbEtIUjVjR1U5SW5OMmJpSXNJSFpoYkhWbFBXTXVkbUZzZFdVcE93MEtJQ0FnSUdNNlczUjVjR1U5UFNJa2RHVmxJbDBnUFQ0Z2FYTnpkV1VvZEhsd1pUMGlkR1ZsSWl3Z2RtRnNkV1U5WXk1MllXeDFaU2s3RFFvZ0lDQWdZenBiZEhsd1pUMDlJaVIwWldVdFpuVjBkWEpsSWwwZ1BUNGdhWE56ZFdVb2RIbHdaVDBpZEdWbExXWjFkSFZ5WlNJc0lIWmhiSFZsUFdNdWRtRnNkV1VwT3cwS2ZUc05DZyJ9. +JwtLength : 1129 +Algorithm : none ``` Gets the policy for Attestation Provider *pshtest* for Tee type *SgxEnclave*. @@ -155,7 +172,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### System.String +### Microsoft.Azure.Commands.Attestation.Models.PSPolicy ## NOTES diff --git a/src/Attestation/Attestation/help/Set-AzAttestationPolicy.md b/src/Attestation/Attestation/help/Set-AzAttestationPolicy.md index 5e5feed35962..b3b1749279b5 100644 --- a/src/Attestation/Attestation/help/Set-AzAttestationPolicy.md +++ b/src/Attestation/Attestation/help/Set-AzAttestationPolicy.md @@ -15,13 +15,14 @@ Sets the policy from a tenant in Azure Attestationn. ### NameParameterSet ``` Set-AzAttestationPolicy [-Name] [-ResourceGroupName] -Tee -Policy - [-PassThru] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-PolicyFormat ] [-PassThru] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ### ResourceIdParameterSet ``` -Set-AzAttestationPolicy [-ResourceId] -Tee -Policy [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Set-AzAttestationPolicy [-ResourceId] -Tee -Policy [-PolicyFormat ] + [-PassThru] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -35,7 +36,15 @@ PS C:\> $policy = Get-Content -Path .\custom.sgx.policy.txt PS C:\> Set-AzAttestationPolicy -Name pshtest -ResourceGroupName psh-test-rg -Tee SgxEnclave -Policy $policy ``` -Sets the user defined policy for TEE type *SgxEnclave* for Attestation Provider *pshtest*. +Sets the user defined policy for TEE type *SgxEnclave* for Attestation Provider *pshtest* using a text policy format (default). + +### Example 2 +```powershell +PS C:\> $policyjwt = Get-Content -Path .\custom.sgx.policy.jwt.format.txt +PS C:\> Set-AzAttestationPolicy -Name pshtest -ResourceGroupName psh-test-rg -Tee SgxEnclave -Policy $policyjwt -PolicyFormat JWT +``` + +Sets the user defined policy for TEE type *SgxEnclave* for Attestation Provider *pshtest* using a JWT policy format. ## PARAMETERS @@ -87,7 +96,7 @@ Accept wildcard characters: False ``` ### -Policy -Specifies the JSON Web Token describing the policy document to set. +Specifies the policy document to set. The policy format can be either Text or JSON Web Token (JWT). ```yaml Type: System.String @@ -101,6 +110,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PolicyFormat +Specifies the format for the policy, either Text or JWT (JSON Web Token). The default policy format is Text. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the resource group name of an attestation provider. @@ -133,7 +157,7 @@ Accept wildcard characters: False ### -Tee Specifies a type of Trusted Execution Environment. -We support four types of environment: SgxEnclave, OpenEnclave, CyResComponent and VBSEnclave. +Four types of environment are supported: SgxEnclave, OpenEnclave, CyResComponent and VBSEnclave. ```yaml Type: System.String diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.cs index d207280b5b12..3e623ae56923 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.cs @@ -47,5 +47,12 @@ public void TestAccountRelatedCmdletsUsingObject() { TestController.NewInstance.RunPowerShellTest(_logger, "Test-AccountRelatedCmdletsUsingObject"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestAddRegionOperation() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-AddRegionOperation"); + } } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.ps1 index d9b79d52cc5e..093d8cf249e6 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.ps1 @@ -166,4 +166,23 @@ function Test-AccountRelatedCmdletsUsingObject $IsAccountDeleted = Remove-AzCosmosDBAccount -InputObject $cosmosDBAccount -PassThru Assert-AreEqual $IsAccountDeleted true +} + +function Test-AddRegionOperation +{ + $rgName = "CosmosDBResourceGroup2" + $location = "East US" + $locationlist = "East US", "West US" + $cosmosDBAccountName = "testupdateregion" + $resourceGroup = New-AzResourceGroup -ResourceGroupName $rgName -Location $location + + $cosmosDBAccount = New-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName -Location $location -EnableMultipleWriteLocations -EnableAutomaticFailover + do + { + $cosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + } while ($cosmosDBAccount.ProvisioningState -ne "Succeeded") + + $updatedCosmosDBAccount = Update-AzCosmosDBAccountRegion -ResourceGroupName $rgName -Name $cosmosDBAccountName -Location $locationlist + $updatedCosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + Assert-AreEqual $cosmosDBAccount.Locations.Count $updatedCosmosDBAccount.Locations.Count - 1 } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.cs index 6ac530149442..1dcf9d884555 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.cs @@ -40,5 +40,12 @@ public void TestCassandraOperationsCmdletsUsingInputObject() { TestController.NewInstance.RunPowerShellTest(_logger, "Test-CassandraOperationsCmdletsUsingInputObject"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestCassandraThroughputCmdlets() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-CassandraThroughputCmdlets"); + } } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.ps1 index a76991b527d8..8908f0ecb736 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/CassandraOperationsTests.ps1 @@ -111,4 +111,57 @@ function Test-CassandraOperationsCmdletsUsingInputObject $IsKeyspaceRemoved = Remove-AzCosmosDBCassandraKeyspace -InputObject $NewKeyspace -PassThru Assert-AreEqual $IsKeyspaceRemoved true +} + +function Test-CassandraThroughputCmdlets +{ + $AccountName = "db2725" + $rgName = "CosmosDBResourceGroup2510" + $KeyspaceName = "KeyspaceName" + $TableName = "tableName" + + $Column1 = New-AzCosmosDBCassandraColumn -Name "ColumnA" -Type "int" + $Column2 = New-AzCosmosDBCassandraColumn -Name "ColumnB" -Type "ascii" + $clusterkey1 = New-AzCosmosDBCassandraClusterKey -Name "ColumnB" -OrderBy "Asc" + $schema = New-AzCosmosDBCassandraSchema -Column $Column1,$Column2 -ClusterKey $clusterkey1 -PartitionKey "ColumnA" + + $ThroughputValue = 1200 + $UpdatedThroughputValue = 1100 + $UpdatedThroughputValue2 = 1000 + $UpdatedThroughputValue3 = 900 + + $TableThroughputValue = 800 + $UpdatedTableThroughputValue = 700 + $UpdatedTableThroughputValue2 = 600 + $UpdatedTableThroughputValue3 = 500 + + $NewKeyspace = Set-AzCosmosDBCassandraKeyspace -AccountName $AccountName -ResourceGroupName $rgName -Name $KeyspaceName -Throughput $ThroughputValue + $Throughput = Get-AzCosmosDBCassandraKeyspaceThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $KeyspaceName + Assert-AreEqual $Throughput.Throughput $ThroughputValue + + $UpdatedThroughput = Update-AzCosmosDBCassandraKeyspaceThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $KeyspaceName -Throughput $UpdatedThroughputValue + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue + + $CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName + $UpdatedThroughput = Update-AzCosmosDBCassandraKeyspaceThroughput -ParentObject $CosmosDBAccount -Name $KeyspaceName -Throughput $UpdatedThroughputValue2 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue2 + + $UpdatedThroughput = Update-AzCosmosDBCassandraKeyspaceThroughput -InputObject $NewKeyspace -Throughput $UpdatedThroughputValue3 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue3 + + $NewTable = Set-AzCosmosDBCassandraTable -AccountName $AccountName -ResourceGroupName $rgName -KeyspaceName $KeyspaceName -Name $TableName -Schema $schema -Throughput $TableThroughputValue + $TableThroughput = Get-AzCosmosDBCassandraTableThroughput -AccountName $AccountName -ResourceGroupName $rgName -KeyspaceName $KeyspaceName -Name $TableName + Assert-AreEqual $TableThroughput.Throughput $TableThroughputValue + + $UpdatedTableThroughput = Update-AzCosmosDBCassandraTableThroughput -InputObject $NewTable -Throughput $UpdatedTableThroughputValue + Assert-AreEqual $UpdatedTableThroughput.Throughput $UpdatedTableThroughputValue + + $UpdatedTableThroughput = Update-AzCosmosDBCassandraTableThroughput -ParentObject $NewKeyspace -Name $TableName -Throughput $UpdatedTableThroughputValue2 + Assert-AreEqual $UpdatedTableThroughput.Throughput $UpdatedTableThroughputValue2 + + $UpdatedTableThroughput = Update-AzCosmosDBCassandraTableThroughput -AccountName $AccountName -ResourceGroupName $rgName -KeyspaceName $KeyspaceName -Name $TableName -Throughput $UpdatedTableThroughputValue3 + Assert-AreEqual $UpdatedTableThroughput.Throughput $UpdatedTableThroughputValue3 + + Remove-AzCosmosDBCassandraTable -InputObject $NewTable + Remove-AzCosmosDBCassandraKeyspace -InputObject $NewKeyspace } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.cs index c7cde05ebfda..cc93e45cb2d7 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.cs @@ -40,5 +40,12 @@ public void TestGremlinOperationsCmdletsUsingInputObject() { TestController.NewInstance.RunPowerShellTest(_logger, "Test-GremlinOperationsCmdletsUsingInputObject"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestGremlinThroughputCmdlets() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-GremlinThroughputCmdlets"); + } } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.ps1 index 89ab94932a15..a4f75f1ae36f 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/GremlinOperationsTests.ps1 @@ -131,4 +131,55 @@ function Test-GremlinOperationsCmdletsUsingInputObject $IsDatabaseRemoved = Remove-AzCosmosDBGremlinDatabase -InputObject $NewDatabase -PassThru Assert-AreEqual $IsDatabaseRemoved true +} + +function Test-GremlinThroughputCmdlets +{ + $AccountName = "db1002" + $rgName = "CosmosDBResourceGroup2510" + $DatabaseName = "dbName3" + $GraphName = "graphName" + + $PartitionKeyPathValue = "/foo" + $PartitionKeyKindValue = "Hash" + + $ThroughputValue = 1200 + $UpdatedThroughputValue = 1100 + $UpdatedThroughputValue2 = 1000 + $UpdatedThroughputValue3 = 900 + + $GraphThroughputValue = 800 + $UpdatedGraphThroughputValue = 700 + $UpdatedGraphThroughputValue2 = 600 + $UpdatedGraphThroughputValue3 = 500 + + $NewDatabase = Set-AzCosmosDBGremlinDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName -Throughput $ThroughputValue + $Throughput = Get-AzCosmosDBGremlinDatabaseThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + Assert-AreEqual $Throughput.Throughput $ThroughputValue + + $UpdatedThroughput = Update-AzCosmosDBGremlinDatabaseThroughput -InputObject $NewDatabase -Throughput $UpdatedThroughputValue + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue + + $UpdatedThroughput = Update-AzCosmosDBGremlinDatabaseThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName -Throughput $UpdatedThroughputValue2 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue2 + + $CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName + $UpdatedThroughput = Update-AzCosmosDBGremlinDatabaseThroughput -ParentObject $CosmosDBAccount -Name $DatabaseName -Throughput $UpdatedThroughputValue3 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue3 + + $NewGraph = Set-AzCosmosDBGremlinGraph -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $GraphThroughputValue -Name $GraphName -PartitionKeyPath $PartitionKeyPathValue -PartitionKeyKind $PartitionKeyKindValue + $GraphThroughput = Get-AzCosmosDBGremlinGraphThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $GraphName + Assert-AreEqual $GraphThroughput.Throughput $GraphThroughputValue + + $UpdatedGraphThroughput = Update-AzCosmosDBGremlinGraphThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $GraphName -Throughput $UpdatedGraphThroughputValue + Assert-AreEqual $UpdatedGraphThroughput.Throughput $UpdatedGraphThroughputValue + + $UpdatedGraphThroughput = Update-AzCosmosDBGremlinGraphThroughput -InputObject $NewGraph -Throughput $UpdatedGraphThroughputValue2 + Assert-AreEqual $UpdatedGraphThroughput.Throughput $UpdatedGraphThroughputValue2 + + $UpdatedGraphThroughput = Update-AzCosmosDBGremlinGraphThroughput -ParentObject $NewDatabase -Name $GraphName -Throughput $UpdatedGraphThroughputValue3 + Assert-AreEqual $UpdatedGraphThroughput.Throughput $UpdatedGraphThroughputValue3 + + Remove-AzCosmosDBGremlinGraph -InputObject $NewGraph + Remove-AzCosmosDBGremlinDatabase -InputObject $NewDatabase } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.cs index 021de3e69bd0..0ba4cd1d367c 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.cs @@ -40,5 +40,12 @@ public void TestMongoOperationsCmdletsUsingInputObject() { TestController.NewInstance.RunPowerShellTest(_logger, "Test-MongoOperationsCmdletsUsingInputObject"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestMongoThroughputCmdlets() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-MongoThroughputCmdlets"); + } } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1 index 8caf6ff021a0..aca87dedbb96 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1 @@ -102,4 +102,54 @@ function Test-MongoOperationsCmdletsUsingInputObject $IsDatabaseRemoved = Remove-AzCosmosDBMongoDBDatabase -InputObject $NewDatabase -PassThru Assert-AreEqual $IsDatabaseRemoved true +} + +function Test-MongoThroughputCmdlets +{ + $AccountName = "db001" + $rgName = "CosmosDBResourceGroup3668" + $DatabaseName = "dbName3" + $CollectionName = "collectionName" + + $ThroughputValue = 1200 + $UpdatedThroughputValue = 1100 + $UpdatedThroughputValue2 = 1000 + $UpdatedThroughputValue3 = 900 + + $CollectionThroughputValue = 800 + $UpdatedCollectionThroughputValue = 700 + $UpdatedCollectionThroughputValue2 = 600 + $UpdatedCollectionThroughputValue3 = 500 + + $ShardKey = "shardKeyPath" + + $NewDatabase = Set-AzCosmosDBMongoDBDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName -Throughput $ThroughputValue + $Throughput = Get-AzCosmosDBMongoDBDatabaseThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + Assert-AreEqual $Throughput.Throughput $ThroughputValue + + $UpdatedThroughput = Update-AzCosmosDBMongoDBDatabaseThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName -Throughput $UpdatedThroughputValue + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue + + $CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName + $UpdatedThroughput = Update-AzCosmosDBMongoDBDatabaseThroughput -ParentObject $CosmosDBAccount -Name $DatabaseName -Throughput $UpdatedThroughputValue2 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue2 + + $UpdatedThroughput = Update-AzCosmosDBMongoDBDatabaseThroughput -InputObject $NewDatabase -Throughput $UpdatedThroughputValue3 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue3 + + $NewCollection = Set-AzCosmosDBMongoDBCollection -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $CollectionThroughputValue -Name $CollectionName -Shard $ShardKey + $CollectionThroughput = Get-AzCosmosDBMongoDBCollectionThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $CollectionName + Assert-AreEqual $CollectionThroughput.Throughput $CollectionThroughputValue + + $UpdatedCollectionThroughput = Update-AzCosmosDBMongoDBCollectionThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $CollectionName -Throughput $UpdatedCollectionThroughputValue + Assert-AreEqual $UpdatedCollectionThroughput.Throughput $UpdatedCollectionThroughputValue + + $UpdatedCollectionThroughput = Update-AzCosmosDBMongoDBCollectionThroughput -InputObject $NewCollection -Throughput $UpdatedCollectionThroughputValue2 + Assert-AreEqual $UpdatedCollectionThroughput.Throughput $UpdatedCollectionThroughputValue2 + + $UpdatedCollectionThroughput = Update-AzCosmosDBMongoDBCollectionThroughput -ParentObject $NewDatabase -Name $CollectionName -Throughput $UpdatedCollectionThroughputValue3 + Assert-AreEqual $UpdatedCollectionThroughput.Throughput $UpdatedCollectionThroughputValue3 + + Remove-AzCosmosDBMongoDBCollection -InputObject $NewCollection + Remove-AzCosmosDBMongoDBDatabase -InputObject $NewDatabase } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.cs index 3b36740559d2..1d3fd43bc613 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.cs @@ -40,5 +40,12 @@ public void TestSqlOperationsCmdletsUsingInputObject() { TestController.NewInstance.RunPowerShellTest(_logger, "Test-SqlOperationsCmdletsUsingInputObject"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSqlThroughputCmdlets() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-SqlThroughputCmdlets"); + } } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1 index 4e98357549cf..f5a3212ad618 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1 @@ -153,14 +153,11 @@ function Test-SqlOperationsCmdletsUsingInputObject $PartitionKeyPathValue = "/foo/bar" $PartitionKeyKindValue = "Hash" - $StoredProcedureName = "storedProcedure" + $StoredProcedureName = "storedProcedure" $UDFName = "udf" $TriggerName = "trigger" - $PartitionKeyPathValue = "/foo/bar" - $PartitionKeyKindValue = "Hash" - $Body = "function () { var context = getContext(); " + "var response = context.getResponse();" + "response.setBody('Hello, World');" + @@ -250,5 +247,56 @@ function Test-SqlOperationsCmdletsUsingInputObject Remove-AzCosmosDBSqlContainer -InputObject $NewContainer + Remove-AzCosmosDBSqlDatabase -InputObject $NewDatabase +} + +function Test-SqlThroughputCmdlets +{ + $AccountName = "cosmosdb9921232812" + $rgName = "rgtest9921232812" + $DatabaseName = "dbName3" + $ContainerName = "containerName" + + $PartitionKeyPathValue = "/foo/bar" + $PartitionKeyKindValue = "Hash" + + $ThroughputValue = 1200 + $UpdatedThroughputValue = 1100 + $UpdatedThroughputValue2 = 1000 + $UpdatedThroughputValue3 = 900 + + $ContainerThroughputValue = 800 + $UpdatedContainerThroughputValue = 700 + $UpdatedContainerThroughputValue2 = 600 + $UpdatedContainerThroughputValue3 = 500 + + $NewDatabase = Set-AzCosmosDBSqlDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName -Throughput $ThroughputValue + $Throughput = Get-AzCosmosDBSqlDatabaseThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + Assert-AreEqual $Throughput.Throughput $ThroughputValue + + $UpdatedThroughput = Update-AzCosmosDBSqlDatabaseThroughput -InputObject $NewDatabase -Throughput $UpdatedThroughputValue + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue + + $UpdatedThroughput = Update-AzCosmosDBSqlDatabaseThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName -Throughput $UpdatedThroughputValue2 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue2 + + $CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName + $UpdatedThroughput = Update-AzCosmosDBSqlDatabaseThroughput -ParentObject $CosmosDBAccount -Name $DatabaseName -Throughput $UpdatedThroughputValue3 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue3 + + $NewContainer = Set-AzCosmosDBSqlContainer -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $ContainerThroughputValue -Name $ContainerName -PartitionKeyPath $PartitionKeyPathValue -PartitionKeyKind $PartitionKeyKindValue + $ContainerThroughput = Get-AzCosmosDBSqlContainerThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName + Assert-AreEqual $ContainerThroughput.Throughput $ContainerThroughputValue + + $UpdatedContainerThroughput = Update-AzCosmosDBSqlContainerThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName -Throughput $UpdatedContainerThroughputValue + Assert-AreEqual $UpdatedContainerThroughput.Throughput $UpdatedContainerThroughputValue + + $UpdatedContainerThroughput = Update-AzCosmosDBSqlContainerThroughput -InputObject $NewContainer -Throughput $UpdatedContainerThroughputValue2 + Assert-AreEqual $UpdatedContainerThroughput.Throughput $UpdatedContainerThroughputValue2 + + $UpdatedContainerThroughput = Update-AzCosmosDBSqlContainerThroughput -ParentObject $NewDatabase -Name $ContainerName -Throughput $UpdatedContainerThroughputValue3 + Assert-AreEqual $UpdatedContainerThroughput.Throughput $UpdatedContainerThroughputValue3 + + Remove-AzCosmosDBSqlContainer -InputObject $NewContainer Remove-AzCosmosDBSqlDatabase -InputObject $NewDatabase } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.cs index 18eb20bb7417..2ee8c305d816 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.cs @@ -40,5 +40,12 @@ public void TestTableOperationsCmdletsUsingInputObject() { TestController.NewInstance.RunPowerShellTest(_logger, "Test-TableOperationsCmdletsUsingInputObject"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestTableThroughputCmdlets() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-TableThroughputCmdlets"); + } } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.ps1 index 57161abd318e..f65bd4934736 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/TableOperationsTests.ps1 @@ -64,4 +64,32 @@ function Test-TableOperationsCmdletsUsingInputObject $IsTableRemoved = Remove-AzCosmosDBTable -InputObject $Table -PassThru Assert-AreEqual $IsTableRemoved true +} + +function Test-TableThroughputCmdlets +{ + $AccountName = "db2527" + $rgName = "CosmosDBResourceGroup2510" + $TableName = "tableName3" + + $ThroughputValue = 1200 + $UpdatedThroughputValue = 1100 + $UpdatedThroughputValue2 = 1000 + $UpdatedThroughputValue3 = 900 + + $NewTable = Set-AzCosmosDBTable -AccountName $AccountName -ResourceGroupName $rgName -Name $TableName -Throughput $ThroughputValue + $Throughput = Get-AzCosmosDBTableThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $TableName + Assert-AreEqual $Throughput.Throughput $ThroughputValue + + $UpdatedThroughput = Update-AzCosmosDBTableThroughput -AccountName $AccountName -ResourceGroupName $rgName -Name $TableName -Throughput $UpdatedThroughputValue + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue + + $CosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $AccountName + $UpdatedThroughput = Update-AzCosmosDBTableThroughput -ParentObject $CosmosDBAccount -Name $TableName -Throughput $UpdatedThroughputValue2 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue2 + + $UpdatedThroughput = Update-AzCosmosDBTableThroughput -InputObject $NewTable -Throughput $UpdatedThroughputValue3 + Assert-AreEqual $UpdatedThroughput.Throughput $UpdatedThroughputValue3 + + Remove-AzCosmosDBTable -InputObject $NewTable } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAddRegionOperation.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAddRegionOperation.json new file mode 100644 index 000000000000..bf7933c631fe --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.AccountTests/TestAddRegionOperation.json @@ -0,0 +1,1448 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourcegroups/CosmosDBResourceGroup2?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23738968-12f7-422e-a3c5-880db18d7e3b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.11" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "07733550-663e-4e6a-9ab6-2c3cbcbb1cce" + ], + "x-ms-correlation-request-id": [ + "07733550-663e-4e6a-9ab6-2c3cbcbb1cce" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T001914Z:07733550-663e-4e6a-9ab6-2c3cbcbb1cce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:19:14 GMT" + ], + "Content-Length": [ + "197" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2\",\r\n \"name\": \"CosmosDBResourceGroup2\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvdGVzdHVwZGF0ZXJlZ2lvbj9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": true,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": true,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"East US\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cb02cc9e-35b9-4ea2-b098-0c732649b4b2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "545" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion/operationResults/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "e103aba9-25ed-4355-9fe9-bd241554cc4a" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "75b2bb28-70f9-4c60-91b9-6f092859d45c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T001923Z:75b2bb28-70f9-4c60-91b9-6f092859d45c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:19:22 GMT" + ], + "Content-Length": [ + "1473" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion\",\r\n \"name\": \"testupdateregion\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "54fd0baa-1ea4-4bda-85f7-76025c5e34d1" + ], + "x-ms-correlation-request-id": [ + "54fd0baa-1ea4-4bda-85f7-76025c5e34d1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T001954Z:54fd0baa-1ea4-4bda-85f7-76025c5e34d1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:19:53 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "9bdac0ec-04c4-4d51-8ccd-f949eba62e00" + ], + "x-ms-correlation-request-id": [ + "9bdac0ec-04c4-4d51-8ccd-f949eba62e00" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002024Z:9bdac0ec-04c4-4d51-8ccd-f949eba62e00" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:20:23 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "784e7569-e9a2-4f07-8026-68a072c2251b" + ], + "x-ms-correlation-request-id": [ + "784e7569-e9a2-4f07-8026-68a072c2251b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002054Z:784e7569-e9a2-4f07-8026-68a072c2251b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:20:53 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "b5fc03d1-841d-475b-af97-50341ed24217" + ], + "x-ms-correlation-request-id": [ + "b5fc03d1-841d-475b-af97-50341ed24217" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002124Z:b5fc03d1-841d-475b-af97-50341ed24217" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:21:23 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "90f550dc-9593-41ab-89d2-4e9d2a1dfe80" + ], + "x-ms-correlation-request-id": [ + "90f550dc-9593-41ab-89d2-4e9d2a1dfe80" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002154Z:90f550dc-9593-41ab-89d2-4e9d2a1dfe80" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:21:54 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "4192b187-17c5-45c6-ab98-53d797307fab" + ], + "x-ms-correlation-request-id": [ + "4192b187-17c5-45c6-ab98-53d797307fab" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002225Z:4192b187-17c5-45c6-ab98-53d797307fab" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:22:24 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "c081f365-78a9-4231-b9ab-29c2c325d0ce" + ], + "x-ms-correlation-request-id": [ + "c081f365-78a9-4231-b9ab-29c2c325d0ce" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002255Z:c081f365-78a9-4231-b9ab-29c2c325d0ce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:22:54 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "158d33f2-c40d-4ca0-9370-729e5706d287" + ], + "x-ms-correlation-request-id": [ + "158d33f2-c40d-4ca0-9370-729e5706d287" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002344Z:158d33f2-c40d-4ca0-9370-729e5706d287" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:23:43 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "3f75ddcd-4133-46bf-b4c3-9e8aeebfe51e" + ], + "x-ms-correlation-request-id": [ + "3f75ddcd-4133-46bf-b4c3-9e8aeebfe51e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002414Z:3f75ddcd-4133-46bf-b4c3-9e8aeebfe51e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:24:13 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "20dbdad3-5dc8-485d-8bd8-04cf0eac801b" + ], + "x-ms-correlation-request-id": [ + "20dbdad3-5dc8-485d-8bd8-04cf0eac801b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002445Z:20dbdad3-5dc8-485d-8bd8-04cf0eac801b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:24:44 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "fee0efcb-c92a-42e8-a9d6-6e2a699ecba9" + ], + "x-ms-correlation-request-id": [ + "fee0efcb-c92a-42e8-a9d6-6e2a699ecba9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002515Z:fee0efcb-c92a-42e8-a9d6-6e2a699ecba9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:25:14 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "275cfb1b-9aea-4f2d-8ee8-3b650a9881f3" + ], + "x-ms-correlation-request-id": [ + "275cfb1b-9aea-4f2d-8ee8-3b650a9881f3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002545Z:275cfb1b-9aea-4f2d-8ee8-3b650a9881f3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:25:45 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "97c48913-b9c6-450c-aa81-f2bfb3e7626a" + ], + "x-ms-correlation-request-id": [ + "97c48913-b9c6-450c-aa81-f2bfb3e7626a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002616Z:97c48913-b9c6-450c-aa81-f2bfb3e7626a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:26:15 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "978b1a90-4092-4a35-84c3-741be40b2058" + ], + "x-ms-correlation-request-id": [ + "978b1a90-4092-4a35-84c3-741be40b2058" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002646Z:978b1a90-4092-4a35-84c3-741be40b2058" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:26:45 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTEwM2FiYTktMjVlZC00MzU1LTlmZTktYmQyNDE1NTRjYzRhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "3967163f-ddad-4692-b4bd-918881ace917" + ], + "x-ms-correlation-request-id": [ + "3967163f-ddad-4692-b4bd-918881ace917" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002716Z:3967163f-ddad-4692-b4bd-918881ace917" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:27:16 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e103aba9-25ed-4355-9fe9-bd241554cc4a?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvdGVzdHVwZGF0ZXJlZ2lvbj9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "3cdd12e2-63af-4439-a612-ab39c89e25a2" + ], + "x-ms-correlation-request-id": [ + "3cdd12e2-63af-4439-a612-ab39c89e25a2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002716Z:3cdd12e2-63af-4439-a612-ab39c89e25a2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:27:16 GMT" + ], + "Content-Length": [ + "1782" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion\",\r\n \"name\": \"testupdateregion\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testupdateregion.documents.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvdGVzdHVwZGF0ZXJlZ2lvbj9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "061a3fe8-12db-433a-8f05-d8897372b084" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "2226de94-11cf-4a0e-aaae-c030147767e3" + ], + "x-ms-correlation-request-id": [ + "2226de94-11cf-4a0e-aaae-c030147767e3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002717Z:2226de94-11cf-4a0e-aaae-c030147767e3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:27:16 GMT" + ], + "Content-Length": [ + "1782" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion\",\r\n \"name\": \"testupdateregion\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testupdateregion.documents.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvdGVzdHVwZGF0ZXJlZ2lvbj9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "48ba67d0-8052-4128-911b-d05954738e97" + ], + "x-ms-correlation-request-id": [ + "48ba67d0-8052-4128-911b-d05954738e97" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002722Z:48ba67d0-8052-4128-911b-d05954738e97" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:27:21 GMT" + ], + "Content-Length": [ + "1782" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion\",\r\n \"name\": \"testupdateregion\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testupdateregion.documents.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvdGVzdHVwZGF0ZXJlZ2lvbj9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3b3b4273-9570-46e0-8d37-8067f5c29981" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "3404ccd7-92a5-432c-8069-9ebb71391d50" + ], + "x-ms-correlation-request-id": [ + "3404ccd7-92a5-432c-8069-9ebb71391d50" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002722Z:3404ccd7-92a5-432c-8069-9ebb71391d50" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:27:21 GMT" + ], + "Content-Length": [ + "1782" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion\",\r\n \"name\": \"testupdateregion\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testupdateregion.documents.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvdGVzdHVwZGF0ZXJlZ2lvbj9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6b797f2c-27bc-4fbf-a48e-ce26e4e58d0d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "a7dcc0e6-f49e-4dc7-a17a-bd11e81c6010" + ], + "x-ms-correlation-request-id": [ + "a7dcc0e6-f49e-4dc7-a17a-bd11e81c6010" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002722Z:a7dcc0e6-f49e-4dc7-a17a-bd11e81c6010" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:27:22 GMT" + ], + "Content-Length": [ + "1782" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion\",\r\n \"name\": \"testupdateregion\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testupdateregion.documents.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvdGVzdHVwZGF0ZXJlZ2lvbj9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"properties\": {\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 1\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "01a759b9-79fb-4176-a95c-f896717a8d0c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "226" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion/operationResults/722f064d-c7ed-4fb8-9096-8ec36a0dc830?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "722f064d-c7ed-4fb8-9096-8ec36a0dc830" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/722f064d-c7ed-4fb8-9096-8ec36a0dc830?api-version=2019-08-01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "db5e0cff-8067-47b9-855b-71b855eb04bd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200407T002721Z:db5e0cff-8067-47b9-855b-71b855eb04bd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 07 Apr 2020 00:27:21 GMT" + ], + "Content-Length": [ + "1782" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2/providers/Microsoft.DocumentDB/databaseAccounts/testupdateregion\",\r\n \"name\": \"testupdateregion\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testupdateregion.documents.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://testupdateregion-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testupdateregion-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.CassandraOperationsTests/TestCassandraThroughputCmdlets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.CassandraOperationsTests/TestCassandraThroughputCmdlets.json new file mode 100644 index 000000000000..1c14209becfa --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.CassandraOperationsTests/TestCassandraThroughputCmdlets.json @@ -0,0 +1,2168 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWU/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"KeyspaceName\"\r\n },\r\n \"options\": {\r\n \"Throughput\": \"1200\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3be2f49e-29e3-4b5f-97b7-3cef2e974dc1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "136" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/operationResults/99f012a4-df1d-4ba2-a79b-b37d14fa40e3?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/99f012a4-df1d-4ba2-a79b-b37d14fa40e3?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "99f012a4-df1d-4ba2-a79b-b37d14fa40e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "0e3f3d6a-5ff6-4359-8244-937aeebd85c6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195055Z:0e3f3d6a-5ff6-4359-8244-937aeebd85c6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:50:54 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/99f012a4-df1d-4ba2-a79b-b37d14fa40e3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy85OWYwMTJhNC1kZjFkLTRiYTItYTc5Yi1iMzdkMTRmYTQwZTM/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "4332c6d2-78ea-41e2-9dc5-8a4f38e00a18" + ], + "x-ms-correlation-request-id": [ + "4332c6d2-78ea-41e2-9dc5-8a4f38e00a18" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195125Z:4332c6d2-78ea-41e2-9dc5-8a4f38e00a18" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:51:24 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/99f012a4-df1d-4ba2-a79b-b37d14fa40e3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWU/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "95dda3f6-5898-4c27-8346-3827994575cd" + ], + "x-ms-correlation-request-id": [ + "95dda3f6-5898-4c27-8346-3827994575cd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195126Z:95dda3f6-5898-4c27-8346-3827994575cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:51:25 GMT" + ], + "Content-Length": [ + "410" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"KeyspaceName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"KeyspaceName\",\r\n \"_rid\": \"2cIJAA==\",\r\n \"_etag\": \"\\\"00000b00-0000-3200-0000-5e8633430000\\\"\",\r\n \"_ts\": 1585853251\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e986941e-5e1a-4e1e-8e19-ba006e916501" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "ea01f86d-7220-4b11-bdb7-82210b75d560" + ], + "x-ms-correlation-request-id": [ + "ea01f86d-7220-4b11-bdb7-82210b75d560" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195127Z:ea01f86d-7220-4b11-bdb7-82210b75d560" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:51:26 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings\",\r\n \"name\": \"b8ji\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1200,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "82928fc4-cdff-41f0-b5f7-03bf51f23a13" + ], + "x-ms-correlation-request-id": [ + "82928fc4-cdff-41f0-b5f7-03bf51f23a13" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195201Z:82928fc4-cdff-41f0-b5f7-03bf51f23a13" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:52:01 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings\",\r\n \"name\": \"b8ji\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "a95558a6-ccb2-44ce-8403-79eaa58bca4a" + ], + "x-ms-correlation-request-id": [ + "a95558a6-ccb2-44ce-8403-79eaa58bca4a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195234Z:a95558a6-ccb2-44ce-8403-79eaa58bca4a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:52:34 GMT" + ], + "Content-Length": [ + "386" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings\",\r\n \"name\": \"b8ji\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "51619104-f640-4bb6-963c-8d2173f4ba21" + ], + "x-ms-correlation-request-id": [ + "51619104-f640-4bb6-963c-8d2173f4ba21" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195307Z:51619104-f640-4bb6-963c-8d2173f4ba21" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:53:06 GMT" + ], + "Content-Length": [ + "385" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings\",\r\n \"name\": \"b8ji\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d0cc2dad-7acb-437f-a830-bde43663858a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default/operationResults/627d7910-de5a-4b42-80d9-8036946067e1?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/627d7910-de5a-4b42-80d9-8036946067e1?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "627d7910-de5a-4b42-80d9-8036946067e1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "e2487e46-b6df-45b6-8325-184cf9e93c7f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195129Z:e2487e46-b6df-45b6-8325-184cf9e93c7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:51:28 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e4b0946-4e8f-4b3f-8fb4-14a4f8381a85" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default/operationResults/4dbb350b-e0f1-48b2-9c4c-1532a6bf57f9?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/4dbb350b-e0f1-48b2-9c4c-1532a6bf57f9?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "4dbb350b-e0f1-48b2-9c4c-1532a6bf57f9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "96f193bf-671f-49cd-8205-7c28d08637ab" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195202Z:96f193bf-671f-49cd-8205-7c28d08637ab" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:52:02 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "15a3db81-ae6e-4b6e-a323-9979dfcda136" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default/operationResults/bd9e4e77-acbb-41bd-83b4-9a6594fde39f?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/bd9e4e77-acbb-41bd-83b4-9a6594fde39f?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "bd9e4e77-acbb-41bd-83b4-9a6594fde39f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "56f5de63-a5fe-4619-a40b-ead1ffe6b75d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195235Z:56f5de63-a5fe-4619-a40b-ead1ffe6b75d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:52:35 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/627d7910-de5a-4b42-80d9-8036946067e1?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy82MjdkNzkxMC1kZTVhLTRiNDItODBkOS04MDM2OTQ2MDY3ZTE/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "df08cdfb-0e2b-4ee0-ad43-ed9d48e7afb6" + ], + "x-ms-correlation-request-id": [ + "df08cdfb-0e2b-4ee0-ad43-ed9d48e7afb6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195159Z:df08cdfb-0e2b-4ee0-ad43-ed9d48e7afb6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:51:59 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/627d7910-de5a-4b42-80d9-8036946067e1?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "40ea7fd6-c8d9-494e-bf2a-e5c3e577310d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "0d1e4742-be26-4ebd-b512-6db062a1d916" + ], + "x-ms-correlation-request-id": [ + "0d1e4742-be26-4ebd-b512-6db062a1d916" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195201Z:0d1e4742-be26-4ebd-b512-6db062a1d916" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:52:01 GMT" + ], + "Content-Length": [ + "1843" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725\",\r\n \"name\": \"db2725\",\r\n \"location\": \"UAE North\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db2725.documents.azure.com:443/\",\r\n \"cassandraEndpoint\": \"https://db2725.cassandra.cosmos.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db2725-uaenorth\",\r\n \"locationName\": \"UAE North\",\r\n \"documentEndpoint\": \"https://db2725-uaenorth.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db2725-uaenorth\",\r\n \"locationName\": \"UAE North\",\r\n \"documentEndpoint\": \"https://db2725-uaenorth.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db2725-uaenorth\",\r\n \"locationName\": \"UAE North\",\r\n \"documentEndpoint\": \"https://db2725-uaenorth.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db2725-uaenorth\",\r\n \"locationName\": \"UAE North\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/4dbb350b-e0f1-48b2-9c4c-1532a6bf57f9?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy80ZGJiMzUwYi1lMGYxLTQ4YjItOWM0Yy0xNTMyYTZiZjU3Zjk/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "33b90ffc-296e-4d12-a1bf-82335c455781" + ], + "x-ms-correlation-request-id": [ + "33b90ffc-296e-4d12-a1bf-82335c455781" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195232Z:33b90ffc-296e-4d12-a1bf-82335c455781" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:52:32 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/4dbb350b-e0f1-48b2-9c4c-1532a6bf57f9?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/bd9e4e77-acbb-41bd-83b4-9a6594fde39f?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy9iZDllNGU3Ny1hY2JiLTQxYmQtODNiNC05YTY1OTRmZGUzOWY/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "34616092-f924-4c7c-8d2d-189ae750f02e" + ], + "x-ms-correlation-request-id": [ + "34616092-f924-4c7c-8d2d-189ae750f02e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195305Z:34616092-f924-4c7c-8d2d-189ae750f02e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:53:05 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/bd9e4e77-acbb-41bd-83b4-9a6594fde39f?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZT9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName\",\r\n \"schema\": {\r\n \"columns\": [\r\n {\r\n \"name\": \"ColumnA\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"ColumnB\",\r\n \"type\": \"ascii\"\r\n }\r\n ],\r\n \"partitionKeys\": [\r\n {\r\n \"name\": \"ColumnA\"\r\n }\r\n ],\r\n \"clusterKeys\": [\r\n {\r\n \"name\": \"ColumnB\",\r\n \"orderBy\": \"Asc\"\r\n }\r\n ]\r\n }\r\n },\r\n \"options\": {\r\n \"Throughput\": \"800\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5a575bac-309c-4141-8b14-8653b11153f4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "590" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/operationResults/2b9179fe-b7c2-4a4a-8f04-0f5f61254eaf?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/2b9179fe-b7c2-4a4a-8f04-0f5f61254eaf?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "2b9179fe-b7c2-4a4a-8f04-0f5f61254eaf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "6860ecde-9821-4926-b356-d1acc2b78477" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195309Z:6860ecde-9821-4926-b356-d1acc2b78477" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:53:08 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/2b9179fe-b7c2-4a4a-8f04-0f5f61254eaf?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy8yYjkxNzlmZS1iN2MyLTRhNGEtOGYwNC0wZjVmNjEyNTRlYWY/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "49af8ab3-b14c-4286-a506-c24df2be8ae2" + ], + "x-ms-correlation-request-id": [ + "49af8ab3-b14c-4286-a506-c24df2be8ae2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195339Z:49af8ab3-b14c-4286-a506-c24df2be8ae2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:53:39 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/2b9179fe-b7c2-4a4a-8f04-0f5f61254eaf?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZT9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "01f646a8-9caa-4dd6-b839-2ab587305bf1" + ], + "x-ms-correlation-request-id": [ + "01f646a8-9caa-4dd6-b839-2ab587305bf1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195340Z:01f646a8-9caa-4dd6-b839-2ab587305bf1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:53:40 GMT" + ], + "Content-Length": [ + "625" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables\",\r\n \"name\": \"tableName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName\",\r\n \"_rid\": \"2cIJAP6+j8I=\",\r\n \"_etag\": \"\\\"00001c00-0000-3200-0000-5e86368c0000\\\"\",\r\n \"_ts\": 1585854092,\r\n \"defaultTtl\": -1,\r\n \"schema\": {\r\n \"columns\": [\r\n {\r\n \"name\": \"ColumnA\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"ColumnB\",\r\n \"type\": \"ascii\"\r\n }\r\n ],\r\n \"partitionKeys\": [\r\n {\r\n \"name\": \"ColumnA\"\r\n }\r\n ],\r\n \"clusterKeys\": [\r\n {\r\n \"name\": \"ColumnB\",\r\n \"orderBy\": \"Asc\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "da5a195a-ac87-4122-8611-fa61cfe7085c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "5d920b19-abe1-4d9d-9f2b-ef34a098af2e" + ], + "x-ms-correlation-request-id": [ + "5d920b19-abe1-4d9d-9f2b-ef34a098af2e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195341Z:5d920b19-abe1-4d9d-9f2b-ef34a098af2e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:53:41 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings\",\r\n \"name\": \"s3qF\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 800,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "b448f4c8-4faf-4b66-8f6d-cd741efb31cd" + ], + "x-ms-correlation-request-id": [ + "b448f4c8-4faf-4b66-8f6d-cd741efb31cd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195415Z:b448f4c8-4faf-4b66-8f6d-cd741efb31cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:54:14 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings\",\r\n \"name\": \"s3qF\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "d45bb6ac-fb8f-4fe1-b699-2b90840541c8" + ], + "x-ms-correlation-request-id": [ + "d45bb6ac-fb8f-4fe1-b699-2b90840541c8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195448Z:d45bb6ac-fb8f-4fe1-b699-2b90840541c8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:54:48 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings\",\r\n \"name\": \"s3qF\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 600,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "22e2957a-dce8-44d0-a3e3-b9e91029dacb" + ], + "x-ms-correlation-request-id": [ + "22e2957a-dce8-44d0-a3e3-b9e91029dacb" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195521Z:22e2957a-dce8-44d0-a3e3-b9e91029dacb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:55:21 GMT" + ], + "Content-Length": [ + "409" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings\",\r\n \"name\": \"s3qF\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 500,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "289b770c-a6ae-4ddc-be8f-7f7057c8c47f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default/operationResults/9a8bba9a-85bf-424c-a93b-1af249c3f0ee?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/9a8bba9a-85bf-424c-a93b-1af249c3f0ee?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "9a8bba9a-85bf-424c-a93b-1af249c3f0ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "0cf3647b-3a68-4b47-b23a-b43132a1df4f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195343Z:0cf3647b-3a68-4b47-b23a-b43132a1df4f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:53:42 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 600\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3503c5a4-9c14-4521-8a04-1d5c89f890b2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default/operationResults/13b8f862-99b7-4c2e-869a-fe65e010192d?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/13b8f862-99b7-4c2e-869a-fe65e010192d?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "13b8f862-99b7-4c2e-869a-fe65e010192d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "ea3de054-dadd-49b8-bb99-6865e03bcb7f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195416Z:ea3de054-dadd-49b8-bb99-6865e03bcb7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:54:15 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 500\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6116944b-5759-4ec6-93ba-b78f5cc67a6f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default/operationResults/b4eb82cd-9eaa-4923-bd64-f3e1eebf7259?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/b4eb82cd-9eaa-4923-bd64-f3e1eebf7259?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "b4eb82cd-9eaa-4923-bd64-f3e1eebf7259" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "91aa6e5d-df0d-494d-8e22-f18048d28147" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195449Z:91aa6e5d-df0d-494d-8e22-f18048d28147" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:54:49 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/9a8bba9a-85bf-424c-a93b-1af249c3f0ee?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy85YThiYmE5YS04NWJmLTQyNGMtYTkzYi0xYWYyNDljM2YwZWU/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "a7f754a4-b301-4f33-b3ff-d2579c56c8a5" + ], + "x-ms-correlation-request-id": [ + "a7f754a4-b301-4f33-b3ff-d2579c56c8a5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195413Z:a7f754a4-b301-4f33-b3ff-d2579c56c8a5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:54:12 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/9a8bba9a-85bf-424c-a93b-1af249c3f0ee?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/13b8f862-99b7-4c2e-869a-fe65e010192d?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy8xM2I4Zjg2Mi05OWI3LTRjMmUtODY5YS1mZTY1ZTAxMDE5MmQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "4feaa689-cec3-4ec7-b5eb-a1b714ea8df9" + ], + "x-ms-correlation-request-id": [ + "4feaa689-cec3-4ec7-b5eb-a1b714ea8df9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195446Z:4feaa689-cec3-4ec7-b5eb-a1b714ea8df9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:54:46 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/13b8f862-99b7-4c2e-869a-fe65e010192d?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/b4eb82cd-9eaa-4923-bd64-f3e1eebf7259?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy9iNGViODJjZC05ZWFhLTQ5MjMtYmQ2NC1mM2UxZWViZjcyNTk/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "9974209f-8578-4942-8448-41c34776f6c4" + ], + "x-ms-correlation-request-id": [ + "9974209f-8578-4942-8448-41c34776f6c4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195519Z:9974209f-8578-4942-8448-41c34776f6c4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:55:19 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/b4eb82cd-9eaa-4923-bd64-f3e1eebf7259?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZT9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cd85e328-7db2-41d9-a7f6-84889a4def95" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/operationResults/dc320df1-e321-400f-b9f0-c81c44c692a6?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/dc320df1-e321-400f-b9f0-c81c44c692a6?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "dc320df1-e321-400f-b9f0-c81c44c692a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "038a7e48-90e0-44a3-9b4d-2205e75aa3ba" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195521Z:038a7e48-90e0-44a3-9b4d-2205e75aa3ba" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:55:21 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/dc320df1-e321-400f-b9f0-c81c44c692a6?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy9kYzMyMGRmMS1lMzIxLTQwMGYtYjlmMC1jODFjNDRjNjkyYTY/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "3ed81d40-8b9d-4f86-b3bd-44cc8e51f1ee" + ], + "x-ms-correlation-request-id": [ + "3ed81d40-8b9d-4f86-b3bd-44cc8e51f1ee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195552Z:3ed81d40-8b9d-4f86-b3bd-44cc8e51f1ee" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:55:51 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/dc320df1-e321-400f-b9f0-c81c44c692a6?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/operationResults/dc320df1-e321-400f-b9f0-c81c44c692a6?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvdGFibGVzL3RhYmxlTmFtZS9vcGVyYXRpb25SZXN1bHRzL2RjMzIwZGYxLWUzMjEtNDAwZi1iOWYwLWM4MWM0NGM2OTJhNj9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "4775914a-4e70-4c62-ba69-7c50ef7861a7" + ], + "x-ms-correlation-request-id": [ + "4775914a-4e70-4c62-ba69-7c50ef7861a7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195552Z:4775914a-4e70-4c62-ba69-7c50ef7861a7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:55:51 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/tables/tableName/operationResults/dc320df1-e321-400f-b9f0-c81c44c692a6?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWU/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3fa5206c-5456-4751-b7a7-e3d293193cd3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/operationResults/1fb5e3c5-6cc4-4999-8d18-2291b74392dd?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/1fb5e3c5-6cc4-4999-8d18-2291b74392dd?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "1fb5e3c5-6cc4-4999-8d18-2291b74392dd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "0f90a2c5-1ea9-4c45-b8ed-0e46ec243fe7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195553Z:0f90a2c5-1ea9-4c45-b8ed-0e46ec243fe7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:55:52 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/1fb5e3c5-6cc4-4999-8d18-2291b74392dd?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvdWFlbm9ydGgvb3BlcmF0aW9uc1N0YXR1cy8xZmI1ZTNjNS02Y2M0LTQ5OTktOGQxOC0yMjkxYjc0MzkyZGQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "5ffd39bc-6351-4f0a-bf15-c1c7e12df379" + ], + "x-ms-correlation-request-id": [ + "5ffd39bc-6351-4f0a-bf15-c1c7e12df379" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195623Z:5ffd39bc-6351-4f0a-bf15-c1c7e12df379" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:56:22 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/uaenorth/operationsStatus/1fb5e3c5-6cc4-4999-8d18-2291b74392dd?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/operationResults/1fb5e3c5-6cc4-4999-8d18-2291b74392dd?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNzI1L2Nhc3NhbmRyYUtleXNwYWNlcy9LZXlzcGFjZU5hbWUvb3BlcmF0aW9uUmVzdWx0cy8xZmI1ZTNjNS02Y2M0LTQ5OTktOGQxOC0yMjkxYjc0MzkyZGQ/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "481bcc97-decf-46bb-ae13-1c2da956640a" + ], + "x-ms-correlation-request-id": [ + "481bcc97-decf-46bb-ae13-1c2da956640a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195623Z:481bcc97-decf-46bb-ae13-1c2da956640a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:56:22 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2725/cassandraKeyspaces/KeyspaceName/operationResults/1fb5e3c5-6cc4-4999-8d18-2291b74392dd?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.GremlinOperationsTests/TestGremlinThroughputCmdlets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.GremlinOperationsTests/TestGremlinThroughputCmdlets.json new file mode 100644 index 000000000000..4df51cd174bf --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.GremlinOperationsTests/TestGremlinThroughputCmdlets.json @@ -0,0 +1,2168 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMz9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"dbName3\"\r\n },\r\n \"options\": {\r\n \"Throughput\": \"1200\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bef5e7c1-fcad-4766-84a2-247e1b8153f0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "131" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/operationResults/1e4e0428-03d7-4971-aead-ae875a24ed9c?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/1e4e0428-03d7-4971-aead-ae875a24ed9c?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "1e4e0428-03d7-4971-aead-ae875a24ed9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "a69531c5-c1b7-47f9-91a7-9de046059e76" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194524Z:a69531c5-c1b7-47f9-91a7-9de046059e76" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:45:23 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/1e4e0428-03d7-4971-aead-ae875a24ed9c?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMWU0ZTA0MjgtMDNkNy00OTcxLWFlYWQtYWU4NzVhMjRlZDljP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "7c6403f9-d214-4ef3-a4e0-896bdb426040" + ], + "x-ms-correlation-request-id": [ + "7c6403f9-d214-4ef3-a4e0-896bdb426040" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194554Z:7c6403f9-d214-4ef3-a4e0-896bdb426040" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:45:54 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/1e4e0428-03d7-4971-aead-ae875a24ed9c?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMz9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "5d31eb5e-1bc4-4967-8eb0-6ff3a494e0bf" + ], + "x-ms-correlation-request-id": [ + "5d31eb5e-1bc4-4967-8eb0-6ff3a494e0bf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194554Z:5d31eb5e-1bc4-4967-8eb0-6ff3a494e0bf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:45:54 GMT" + ], + "Content-Length": [ + "451" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"dbName3\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"dbName3\",\r\n \"_rid\": \"0EAyAA==\",\r\n \"_self\": \"dbs/0EAyAA==/\",\r\n \"_etag\": \"\\\"0000d805-0000-0100-0000-5e8640db0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1585856731\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c2d04efb-2989-44b4-8eeb-86ae5f003901" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "6721ad20-a524-4227-83c9-8a7a00b96d2a" + ], + "x-ms-correlation-request-id": [ + "6721ad20-a524-4227-83c9-8a7a00b96d2a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194555Z:6721ad20-a524-4227-83c9-8a7a00b96d2a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:45:54 GMT" + ], + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings\",\r\n \"name\": \"6qVm\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1200,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "f5d2f463-b8c1-4f8c-a179-f8e6963b5952" + ], + "x-ms-correlation-request-id": [ + "f5d2f463-b8c1-4f8c-a179-f8e6963b5952" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194626Z:f5d2f463-b8c1-4f8c-a179-f8e6963b5952" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:46:25 GMT" + ], + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings\",\r\n \"name\": \"6qVm\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "759ab604-b68d-412d-98f9-d02c02996388" + ], + "x-ms-correlation-request-id": [ + "759ab604-b68d-412d-98f9-d02c02996388" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194657Z:759ab604-b68d-412d-98f9-d02c02996388" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:46:56 GMT" + ], + "Content-Length": [ + "377" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings\",\r\n \"name\": \"6qVm\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "fe0606b8-bcdc-4609-904a-fcc9a308b678" + ], + "x-ms-correlation-request-id": [ + "fe0606b8-bcdc-4609-904a-fcc9a308b678" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194728Z:fe0606b8-bcdc-4609-904a-fcc9a308b678" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:47:28 GMT" + ], + "Content-Length": [ + "376" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings\",\r\n \"name\": \"6qVm\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2bfc965c-8078-42b7-b320-0d9e29ae7011" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default/operationResults/997b87e8-7657-432b-b4fc-13a32ea2c1f5?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/997b87e8-7657-432b-b4fc-13a32ea2c1f5?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "997b87e8-7657-432b-b4fc-13a32ea2c1f5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "fb61448b-8254-4990-b871-e24ae34c62d6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194555Z:fb61448b-8254-4990-b871-e24ae34c62d6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:45:55 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e41ace6b-6e16-4dbf-9cff-f6dbc0fcd2d0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default/operationResults/a339f0e1-4d4a-4d1c-9024-b701e9302964?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/a339f0e1-4d4a-4d1c-9024-b701e9302964?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "a339f0e1-4d4a-4d1c-9024-b701e9302964" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "e76d6504-439c-47d2-8a73-8a24d76c2eb5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194627Z:e76d6504-439c-47d2-8a73-8a24d76c2eb5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:46:26 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "32959f29-d32f-4e86-892a-14788c0d4172" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default/operationResults/2af852d3-ce48-45ca-82b5-d97fb36ecb8e?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/2af852d3-ce48-45ca-82b5-d97fb36ecb8e?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "2af852d3-ce48-45ca-82b5-d97fb36ecb8e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "419e63bc-b850-4f26-a85e-fb0100c8a0ed" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194658Z:419e63bc-b850-4f26-a85e-fb0100c8a0ed" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:46:57 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/997b87e8-7657-432b-b4fc-13a32ea2c1f5?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOTk3Yjg3ZTgtNzY1Ny00MzJiLWI0ZmMtMTNhMzJlYTJjMWY1P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "40154d42-ac43-4b6b-86f9-902825ef42cd" + ], + "x-ms-correlation-request-id": [ + "40154d42-ac43-4b6b-86f9-902825ef42cd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194626Z:40154d42-ac43-4b6b-86f9-902825ef42cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:46:25 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/997b87e8-7657-432b-b4fc-13a32ea2c1f5?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/a339f0e1-4d4a-4d1c-9024-b701e9302964?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvYTMzOWYwZTEtNGQ0YS00ZDFjLTkwMjQtYjcwMWU5MzAyOTY0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "6e75188e-5f3a-408d-b9f7-daacc14d8740" + ], + "x-ms-correlation-request-id": [ + "6e75188e-5f3a-408d-b9f7-daacc14d8740" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194657Z:6e75188e-5f3a-408d-b9f7-daacc14d8740" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:46:56 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/a339f0e1-4d4a-4d1c-9024-b701e9302964?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "26aa924f-5bc2-4070-8846-bba4082e14d5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "1d1b82a8-e0c1-41e6-a74d-58fdfdfa256a" + ], + "x-ms-correlation-request-id": [ + "1d1b82a8-e0c1-41e6-a74d-58fdfdfa256a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194657Z:1d1b82a8-e0c1-41e6-a74d-58fdfdfa256a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:46:56 GMT" + ], + "Content-Length": [ + "1822" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002\",\r\n \"name\": \"db1002\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db1002.documents.azure.com:443/\",\r\n \"gremlinEndpoint\": \"https://db1002.gremlin.cosmos.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db1002-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db1002-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db1002-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db1002-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db1002-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db1002-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db1002-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/2af852d3-ce48-45ca-82b5-d97fb36ecb8e?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMmFmODUyZDMtY2U0OC00NWNhLTgyYjUtZDk3ZmIzNmVjYjhlP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "342bd1e0-36fd-4d8b-9b45-3c64aba6d674" + ], + "x-ms-correlation-request-id": [ + "342bd1e0-36fd-4d8b-9b45-3c64aba6d674" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194728Z:342bd1e0-36fd-4d8b-9b45-3c64aba6d674" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:47:28 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/2af852d3-ce48-45ca-82b5-d97fb36ecb8e?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"graphName\",\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo\"\r\n ],\r\n \"kind\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"Throughput\": \"800\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c4bc37e4-ee5b-467c-b793-ab6dc0d63756" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "241" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/operationResults/0f5f9dde-69a9-4a92-9711-12eb86028b57?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/0f5f9dde-69a9-4a92-9711-12eb86028b57?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "0f5f9dde-69a9-4a92-9711-12eb86028b57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "ca5c10fc-b053-4f8d-ae45-edfe62de0203" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194729Z:ca5c10fc-b053-4f8d-ae45-edfe62de0203" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:47:29 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/0f5f9dde-69a9-4a92-9711-12eb86028b57?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMGY1ZjlkZGUtNjlhOS00YTkyLTk3MTEtMTJlYjg2MDI4YjU3P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "58fab397-744f-4fb5-88fd-28af9add992a" + ], + "x-ms-correlation-request-id": [ + "58fab397-744f-4fb5-88fd-28af9add992a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194759Z:58fab397-744f-4fb5-88fd-28af9add992a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:47:58 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/0f5f9dde-69a9-4a92-9711-12eb86028b57?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "44ec4b9b-a86e-4472-a148-be017c3548b2" + ], + "x-ms-correlation-request-id": [ + "44ec4b9b-a86e-4472-a148-be017c3548b2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194759Z:44ec4b9b-a86e-4472-a148-be017c3548b2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:47:59 GMT" + ], + "Content-Length": [ + "1024" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs\",\r\n \"name\": \"graphName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"graphName\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"0EAyALRUzEc=\",\r\n \"_ts\": 1585856853,\r\n \"_self\": \"dbs/0EAyAA==/colls/0EAyALRUzEc=/\",\r\n \"_etag\": \"\\\"0000e605-0000-0100-0000-5e8641550000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f98dc261-621b-4af6-988e-382c955d6e13" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "66ff718b-62ab-48d9-be49-a0388dc87040" + ], + "x-ms-correlation-request-id": [ + "66ff718b-62ab-48d9-be49-a0388dc87040" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194759Z:66ff718b-62ab-48d9-be49-a0388dc87040" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:47:59 GMT" + ], + "Content-Length": [ + "400" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings\",\r\n \"name\": \"AYUK\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 800,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "28c2f2f6-7d47-4524-93d4-805f2b6e2f8c" + ], + "x-ms-correlation-request-id": [ + "28c2f2f6-7d47-4524-93d4-805f2b6e2f8c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194831Z:28c2f2f6-7d47-4524-93d4-805f2b6e2f8c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:48:30 GMT" + ], + "Content-Length": [ + "400" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings\",\r\n \"name\": \"AYUK\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "025ddd91-d9f3-40c9-9a1c-6e51e2bf9ed7" + ], + "x-ms-correlation-request-id": [ + "025ddd91-d9f3-40c9-9a1c-6e51e2bf9ed7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194903Z:025ddd91-d9f3-40c9-9a1c-6e51e2bf9ed7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:49:03 GMT" + ], + "Content-Length": [ + "400" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings\",\r\n \"name\": \"AYUK\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 600,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "25f297cf-f800-4438-8b2f-aafc1bb5cd48" + ], + "x-ms-correlation-request-id": [ + "25f297cf-f800-4438-8b2f-aafc1bb5cd48" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194934Z:25f297cf-f800-4438-8b2f-aafc1bb5cd48" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:49:33 GMT" + ], + "Content-Length": [ + "400" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings\",\r\n \"name\": \"AYUK\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 500,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "efd7a0c7-e151-4455-beab-a6f705733f29" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default/operationResults/55da82aa-2303-46fd-a7f2-9b15a3b9ffe4?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/55da82aa-2303-46fd-a7f2-9b15a3b9ffe4?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "55da82aa-2303-46fd-a7f2-9b15a3b9ffe4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "69ebe638-b35d-43cc-8855-88db53110569" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194800Z:69ebe638-b35d-43cc-8855-88db53110569" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:48:00 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 600\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "36cc2126-46ca-4ca1-98d2-810ef9805ff9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default/operationResults/5af8722a-5fa0-47b7-9c31-0bdfc894bd8f?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/5af8722a-5fa0-47b7-9c31-0bdfc894bd8f?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "5af8722a-5fa0-47b7-9c31-0bdfc894bd8f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "fcead777-8bad-45d2-9366-179fef6ef817" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194832Z:fcead777-8bad-45d2-9366-179fef6ef817" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:48:31 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 500\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "80a3550b-a72a-4502-9f87-68b468bff8c7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default/operationResults/a13fa717-99a0-4b3c-b06b-1de8440a1513?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/a13fa717-99a0-4b3c-b06b-1de8440a1513?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "a13fa717-99a0-4b3c-b06b-1de8440a1513" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "69b2ed93-c827-4033-a511-2cc0294a3af4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194903Z:69b2ed93-c827-4033-a511-2cc0294a3af4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:49:03 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/55da82aa-2303-46fd-a7f2-9b15a3b9ffe4?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNTVkYTgyYWEtMjMwMy00NmZkLWE3ZjItOWIxNWEzYjlmZmU0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "0e190a4d-5dce-4eec-a40b-4643c35569a2" + ], + "x-ms-correlation-request-id": [ + "0e190a4d-5dce-4eec-a40b-4643c35569a2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194830Z:0e190a4d-5dce-4eec-a40b-4643c35569a2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:48:29 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/55da82aa-2303-46fd-a7f2-9b15a3b9ffe4?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/5af8722a-5fa0-47b7-9c31-0bdfc894bd8f?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNWFmODcyMmEtNWZhMC00N2I3LTljMzEtMGJkZmM4OTRiZDhmP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "6c9973f0-85e9-42b2-ad9d-21910233cb1d" + ], + "x-ms-correlation-request-id": [ + "6c9973f0-85e9-42b2-ad9d-21910233cb1d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194902Z:6c9973f0-85e9-42b2-ad9d-21910233cb1d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:49:02 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/5af8722a-5fa0-47b7-9c31-0bdfc894bd8f?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/a13fa717-99a0-4b3c-b06b-1de8440a1513?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvYTEzZmE3MTctOTlhMC00YjNjLWIwNmItMWRlODQ0MGExNTEzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "42a2d0ef-cb1b-4f3a-8819-64c2175850dd" + ], + "x-ms-correlation-request-id": [ + "42a2d0ef-cb1b-4f3a-8819-64c2175850dd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194933Z:42a2d0ef-cb1b-4f3a-8819-64c2175850dd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:49:33 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/a13fa717-99a0-4b3c-b06b-1de8440a1513?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7c5a75e3-c336-474c-b1fe-894dc029ac31" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/operationResults/60ebc2b1-5e76-426a-97d9-d54e526bb822?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/60ebc2b1-5e76-426a-97d9-d54e526bb822?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "60ebc2b1-5e76-426a-97d9-d54e526bb822" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "ec7b2a9c-a407-4e9c-b28b-22ebc3426722" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194934Z:ec7b2a9c-a407-4e9c-b28b-22ebc3426722" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:49:34 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/60ebc2b1-5e76-426a-97d9-d54e526bb822?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNjBlYmMyYjEtNWU3Ni00MjZhLTk3ZDktZDU0ZTUyNmJiODIyP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "b862006b-5f9c-4b46-ad2c-2cf37b2128b5" + ], + "x-ms-correlation-request-id": [ + "b862006b-5f9c-4b46-ad2c-2cf37b2128b5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195004Z:b862006b-5f9c-4b46-ad2c-2cf37b2128b5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:50:04 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/60ebc2b1-5e76-426a-97d9-d54e526bb822?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/operationResults/60ebc2b1-5e76-426a-97d9-d54e526bb822?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9ncmFwaHMvZ3JhcGhOYW1lL29wZXJhdGlvblJlc3VsdHMvNjBlYmMyYjEtNWU3Ni00MjZhLTk3ZDktZDU0ZTUyNmJiODIyP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "2f0bf6d1-0908-48f6-add9-82627b7d6cbd" + ], + "x-ms-correlation-request-id": [ + "2f0bf6d1-0908-48f6-add9-82627b7d6cbd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195005Z:2f0bf6d1-0908-48f6-add9-82627b7d6cbd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:50:04 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/graphs/graphName/operationResults/60ebc2b1-5e76-426a-97d9-d54e526bb822?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMz9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1e073a4a-c629-4eda-82fc-d81722db453a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/operationResults/e267768f-a414-4ce9-ac09-02c6a4afaeba?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e267768f-a414-4ce9-ac09-02c6a4afaeba?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "e267768f-a414-4ce9-ac09-02c6a4afaeba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "7eb63394-2b33-4081-aeb6-2fc5a6f58a81" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195005Z:7eb63394-2b33-4081-aeb6-2fc5a6f58a81" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:50:05 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e267768f-a414-4ce9-ac09-02c6a4afaeba?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTI2Nzc2OGYtYTQxNC00Y2U5LWFjMDktMDJjNmE0YWZhZWJhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "8091bba5-b11c-4d19-92ed-54c73af80e7d" + ], + "x-ms-correlation-request-id": [ + "8091bba5-b11c-4d19-92ed-54c73af80e7d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195036Z:8091bba5-b11c-4d19-92ed-54c73af80e7d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:50:35 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e267768f-a414-4ce9-ac09-02c6a4afaeba?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/operationResults/e267768f-a414-4ce9-ac09-02c6a4afaeba?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIxMDAyL2dyZW1saW5EYXRhYmFzZXMvZGJOYW1lMy9vcGVyYXRpb25SZXN1bHRzL2UyNjc3NjhmLWE0MTQtNGNlOS1hYzA5LTAyYzZhNGFmYWViYT9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "19951698-b192-4367-bfd9-c3f72bb44b65" + ], + "x-ms-correlation-request-id": [ + "19951698-b192-4367-bfd9-c3f72bb44b65" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T195036Z:19951698-b192-4367-bfd9-c3f72bb44b65" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:50:36 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db1002/gremlinDatabases/dbName3/operationResults/e267768f-a414-4ce9-ac09-02c6a4afaeba?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoThroughputCmdlets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoThroughputCmdlets.json new file mode 100644 index 000000000000..3ea9a851da07 --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoThroughputCmdlets.json @@ -0,0 +1,2168 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"dbName3\"\r\n },\r\n \"options\": {\r\n \"Throughput\": \"1200\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6592c92d-8c53-4c29-b0f9-b90302522e69" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "131" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/operationResults/fbc6c749-0c85-4008-ab20-735605bdbe4d?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/fbc6c749-0c85-4008-ab20-735605bdbe4d?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "fbc6c749-0c85-4008-ab20-735605bdbe4d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b9341792-7da5-472b-86ee-1cc86986baaa" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193604Z:b9341792-7da5-472b-86ee-1cc86986baaa" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:36:03 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/fbc6c749-0c85-4008-ab20-735605bdbe4d?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZmJjNmM3NDktMGM4NS00MDA4LWFiMjAtNzM1NjA1YmRiZTRkP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "e15386b9-68b8-4e1d-9f4e-6ed46d77822f" + ], + "x-ms-correlation-request-id": [ + "e15386b9-68b8-4e1d-9f4e-6ed46d77822f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193634Z:e15386b9-68b8-4e1d-9f4e-6ed46d77822f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:36:34 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/fbc6c749-0c85-4008-ab20-735605bdbe4d?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "86b4c5f3-968b-438b-9d2e-b8d7f9226bf4" + ], + "x-ms-correlation-request-id": [ + "86b4c5f3-968b-438b-9d2e-b8d7f9226bf4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193635Z:86b4c5f3-968b-438b-9d2e-b8d7f9226bf4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:36:35 GMT" + ], + "Content-Length": [ + "390" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"dbName3\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"dbName3\",\r\n \"_rid\": \"TXIXAA==\",\r\n \"_etag\": \"\\\"00001700-0000-0100-0000-5e863eab0000\\\"\",\r\n \"_ts\": 1585856171\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ec1c9d4a-4e9f-4014-b74c-9be02ba3df5e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "5fb047e2-2bd6-4dc2-9909-5469b38d5add" + ], + "x-ms-correlation-request-id": [ + "5fb047e2-2bd6-4dc2-9909-5469b38d5add" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193635Z:5fb047e2-2bd6-4dc2-9909-5469b38d5add" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:36:35 GMT" + ], + "Content-Length": [ + "376" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings\",\r\n \"name\": \"DhJx\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1200,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "a5bae304-3c08-4d8f-afe7-2a2d0d9805a8" + ], + "x-ms-correlation-request-id": [ + "a5bae304-3c08-4d8f-afe7-2a2d0d9805a8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193706Z:a5bae304-3c08-4d8f-afe7-2a2d0d9805a8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:37:06 GMT" + ], + "Content-Length": [ + "376" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings\",\r\n \"name\": \"DhJx\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "ab90803b-ad94-401c-a6f1-b4a91defd0b9" + ], + "x-ms-correlation-request-id": [ + "ab90803b-ad94-401c-a6f1-b4a91defd0b9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193738Z:ab90803b-ad94-401c-a6f1-b4a91defd0b9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:37:38 GMT" + ], + "Content-Length": [ + "376" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings\",\r\n \"name\": \"DhJx\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "8d8874ba-9f8b-4867-9fbc-24abb7ce83d2" + ], + "x-ms-correlation-request-id": [ + "8d8874ba-9f8b-4867-9fbc-24abb7ce83d2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193809Z:8d8874ba-9f8b-4867-9fbc-24abb7ce83d2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:38:09 GMT" + ], + "Content-Length": [ + "375" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings\",\r\n \"name\": \"DhJx\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "03379487-e7ea-4b05-9c11-0790ff6e803c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default/operationResults/b82c5129-86d4-4c1b-abf2-bfa4659d382f?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/b82c5129-86d4-4c1b-abf2-bfa4659d382f?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "b82c5129-86d4-4c1b-abf2-bfa4659d382f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "37475c3c-e523-43e8-9077-6b6687f8c11c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193636Z:37475c3c-e523-43e8-9077-6b6687f8c11c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:36:36 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "16d62a26-d23d-4f32-90d0-c7eddb2fb1ec" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default/operationResults/7c353993-6b29-46d2-9fb9-a62107d3b2b6?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/7c353993-6b29-46d2-9fb9-a62107d3b2b6?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "7c353993-6b29-46d2-9fb9-a62107d3b2b6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "e7845710-cc30-4d15-b44c-0a2ba7e71563" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193707Z:e7845710-cc30-4d15-b44c-0a2ba7e71563" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:37:07 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bcc009ad-043b-4d0a-abb2-a579dcae4f87" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default/operationResults/e119c04e-fe8a-4752-a284-1075cbc4c1d8?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e119c04e-fe8a-4752-a284-1075cbc4c1d8?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "e119c04e-fe8a-4752-a284-1075cbc4c1d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "058965ea-9387-4c0b-8cf3-a55658acdd62" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193739Z:058965ea-9387-4c0b-8cf3-a55658acdd62" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:37:38 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/b82c5129-86d4-4c1b-abf2-bfa4659d382f?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvYjgyYzUxMjktODZkNC00YzFiLWFiZjItYmZhNDY1OWQzODJmP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "5834dbf9-6d26-404b-8ba9-8df038936285" + ], + "x-ms-correlation-request-id": [ + "5834dbf9-6d26-404b-8ba9-8df038936285" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193706Z:5834dbf9-6d26-404b-8ba9-8df038936285" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:37:06 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/b82c5129-86d4-4c1b-abf2-bfa4659d382f?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDE/YXBpLXZlcnNpb249MjAxOS0wOC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4107f312-39d9-4245-bbdd-a60ecf7bbeab" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "e13fc9b3-8e6b-4e18-b1d1-c0996411c38f" + ], + "x-ms-correlation-request-id": [ + "e13fc9b3-8e6b-4e18-b1d1-c0996411c38f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193706Z:e13fc9b3-8e6b-4e18-b1d1-c0996411c38f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:37:06 GMT" + ], + "Content-Length": [ + "1716" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001\",\r\n \"name\": \"db001\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db001.documents.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db001-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db001-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db001-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db001-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db001-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db001-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db001-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/7c353993-6b29-46d2-9fb9-a62107d3b2b6?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvN2MzNTM5OTMtNmIyOS00NmQyLTlmYjktYTYyMTA3ZDNiMmI2P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "207751e2-0dfe-4395-892b-9fc9e7b9577b" + ], + "x-ms-correlation-request-id": [ + "207751e2-0dfe-4395-892b-9fc9e7b9577b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193738Z:207751e2-0dfe-4395-892b-9fc9e7b9577b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:37:37 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/7c353993-6b29-46d2-9fb9-a62107d3b2b6?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e119c04e-fe8a-4752-a284-1075cbc4c1d8?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTExOWMwNGUtZmU4YS00NzUyLWEyODQtMTA3NWNiYzRjMWQ4P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "29e18d33-5c42-44d2-b2b1-706359337274" + ], + "x-ms-correlation-request-id": [ + "29e18d33-5c42-44d2-b2b1-706359337274" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193809Z:29e18d33-5c42-44d2-b2b1-706359337274" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:38:08 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e119c04e-fe8a-4752-a284-1075cbc4c1d8?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName\",\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"Throughput\": \"800\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "73133552-fc1e-4a72-b744-5b7415210809" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "200" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/operationResults/e9ea2707-f434-491e-94da-84ced13366fa?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e9ea2707-f434-491e-94da-84ced13366fa?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "e9ea2707-f434-491e-94da-84ced13366fa" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "9e426333-d6c8-4722-90ed-7e97198f1d94" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193810Z:9e426333-d6c8-4722-90ed-7e97198f1d94" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:38:09 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e9ea2707-f434-491e-94da-84ced13366fa?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZTllYTI3MDctZjQzNC00OTFlLTk0ZGEtODRjZWQxMzM2NmZhP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "da1303a1-6a19-45b9-ba6b-abf3ad3ac8c1" + ], + "x-ms-correlation-request-id": [ + "da1303a1-6a19-45b9-ba6b-abf3ad3ac8c1" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193840Z:da1303a1-6a19-45b9-ba6b-abf3ad3ac8c1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:38:39 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/e9ea2707-f434-491e-94da-84ced13366fa?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "0a9b46dd-0820-4956-8eba-d8958968ed9c" + ], + "x-ms-correlation-request-id": [ + "0a9b46dd-0820-4956-8eba-d8958968ed9c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193841Z:0a9b46dd-0820-4956-8eba-d8958968ed9c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:38:40 GMT" + ], + "Content-Length": [ + "589" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"collectionName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName\",\r\n \"_rid\": \"TXIXANU7fXM=\",\r\n \"_etag\": \"\\\"00002100-0000-0100-0000-5e863f2e0000\\\"\",\r\n \"_ts\": 1585856302,\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n },\r\n \"options\": {}\r\n },\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"DocumentDBDefaultIndex\"\r\n ]\r\n },\r\n \"options\": {}\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9e2182fe-00d7-4941-bc20-9e24e62a374e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "ec7549b5-7ec0-49a5-b0fb-61172fbe6f8f" + ], + "x-ms-correlation-request-id": [ + "ec7549b5-7ec0-49a5-b0fb-61172fbe6f8f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193841Z:ec7549b5-7ec0-49a5-b0fb-61172fbe6f8f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:38:40 GMT" + ], + "Content-Length": [ + "414" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings\",\r\n \"name\": \"yQA0\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 800,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "5c915fd7-4be9-4a4a-8040-d9e7d8e58132" + ], + "x-ms-correlation-request-id": [ + "5c915fd7-4be9-4a4a-8040-d9e7d8e58132" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193912Z:5c915fd7-4be9-4a4a-8040-d9e7d8e58132" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:39:12 GMT" + ], + "Content-Length": [ + "414" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings\",\r\n \"name\": \"yQA0\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "c499d055-aa5c-4d76-966a-84c44b0a020c" + ], + "x-ms-correlation-request-id": [ + "c499d055-aa5c-4d76-966a-84c44b0a020c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193944Z:c499d055-aa5c-4d76-966a-84c44b0a020c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:39:44 GMT" + ], + "Content-Length": [ + "414" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings\",\r\n \"name\": \"yQA0\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 600,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "e867dd4c-cebb-4e8a-a56e-3f4828eddf13" + ], + "x-ms-correlation-request-id": [ + "e867dd4c-cebb-4e8a-a56e-3f4828eddf13" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194015Z:e867dd4c-cebb-4e8a-a56e-3f4828eddf13" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:40:14 GMT" + ], + "Content-Length": [ + "414" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings\",\r\n \"name\": \"yQA0\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 500,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2be1ded8-ab3c-48e0-aa1c-8eb04d28ab4e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default/operationResults/4e62702f-bac4-4790-8931-96114b720bce?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4e62702f-bac4-4790-8931-96114b720bce?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "4e62702f-bac4-4790-8931-96114b720bce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "80b535e5-13bf-4695-b909-345187ab57a4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193842Z:80b535e5-13bf-4695-b909-345187ab57a4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:38:41 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 600\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b723c01e-a9d9-4de6-b2b2-e819d3f85778" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default/operationResults/39ffda1f-b273-4b80-ab52-67e196267737?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/39ffda1f-b273-4b80-ab52-67e196267737?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "39ffda1f-b273-4b80-ab52-67e196267737" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "1a765925-0e06-416a-9525-8f025e6d66fd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193913Z:1a765925-0e06-416a-9525-8f025e6d66fd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:39:13 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 500\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f3ffa34d-0b26-4e12-8388-6e37ef4cc08b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default/operationResults/27a0b6c5-9504-4cc7-bf01-e782bd20c6ae?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/27a0b6c5-9504-4cc7-bf01-e782bd20c6ae?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "27a0b6c5-9504-4cc7-bf01-e782bd20c6ae" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "52ab59d6-2f32-4ab6-a449-0caa5ba017e7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193945Z:52ab59d6-2f32-4ab6-a449-0caa5ba017e7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:39:44 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4e62702f-bac4-4790-8931-96114b720bce?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNGU2MjcwMmYtYmFjNC00NzkwLTg5MzEtOTYxMTRiNzIwYmNlP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "c4dfc272-11b7-4a58-a373-92bd2a09df7b" + ], + "x-ms-correlation-request-id": [ + "c4dfc272-11b7-4a58-a373-92bd2a09df7b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193912Z:c4dfc272-11b7-4a58-a373-92bd2a09df7b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:39:12 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4e62702f-bac4-4790-8931-96114b720bce?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/39ffda1f-b273-4b80-ab52-67e196267737?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMzlmZmRhMWYtYjI3My00YjgwLWFiNTItNjdlMTk2MjY3NzM3P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "bc357e2d-35ef-4b12-9968-8b4d39d2481b" + ], + "x-ms-correlation-request-id": [ + "bc357e2d-35ef-4b12-9968-8b4d39d2481b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T193944Z:bc357e2d-35ef-4b12-9968-8b4d39d2481b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:39:43 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/39ffda1f-b273-4b80-ab52-67e196267737?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/27a0b6c5-9504-4cc7-bf01-e782bd20c6ae?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMjdhMGI2YzUtOTUwNC00Y2M3LWJmMDEtZTc4MmJkMjBjNmFlP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "9b7ab18c-d3ba-4a39-90c9-a44eac8d0cee" + ], + "x-ms-correlation-request-id": [ + "9b7ab18c-d3ba-4a39-90c9-a44eac8d0cee" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194015Z:9b7ab18c-d3ba-4a39-90c9-a44eac8d0cee" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:40:14 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/27a0b6c5-9504-4cc7-bf01-e782bd20c6ae?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cc9d1e72-711a-4f73-8321-9b93def1894d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/operationResults/048d96e3-5dde-45d7-9688-de3103ea0046?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/048d96e3-5dde-45d7-9688-de3103ea0046?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "048d96e3-5dde-45d7-9688-de3103ea0046" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "2d96b61a-d933-45e0-ad0c-a428c0b94e08" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194016Z:2d96b61a-d933-45e0-ad0c-a428c0b94e08" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:40:15 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/048d96e3-5dde-45d7-9688-de3103ea0046?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMDQ4ZDk2ZTMtNWRkZS00NWQ3LTk2ODgtZGUzMTAzZWEwMDQ2P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "1b97a614-4505-4d37-b102-2bc352d23d3f" + ], + "x-ms-correlation-request-id": [ + "1b97a614-4505-4d37-b102-2bc352d23d3f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194046Z:1b97a614-4505-4d37-b102-2bc352d23d3f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:40:46 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/048d96e3-5dde-45d7-9688-de3103ea0046?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/operationResults/048d96e3-5dde-45d7-9688-de3103ea0046?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lL29wZXJhdGlvblJlc3VsdHMvMDQ4ZDk2ZTMtNWRkZS00NWQ3LTk2ODgtZGUzMTAzZWEwMDQ2P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "12a34427-18b0-4665-988d-e5414352b433" + ], + "x-ms-correlation-request-id": [ + "12a34427-18b0-4665-988d-e5414352b433" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194046Z:12a34427-18b0-4665-988d-e5414352b433" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:40:46 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/collections/collectionName/operationResults/048d96e3-5dde-45d7-9688-de3103ea0046?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "370b36b6-d8f3-4a18-9bc2-8c169df76e78" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/operationResults/9d66858e-acd4-4cd5-99e1-6f0e0b7512c1?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9d66858e-acd4-4cd5-99e1-6f0e0b7512c1?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "9d66858e-acd4-4cd5-99e1-6f0e0b7512c1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "afa4de6c-79cd-431f-88e8-07df191aaf45" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194047Z:afa4de6c-79cd-431f-88e8-07df191aaf45" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:40:46 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9d66858e-acd4-4cd5-99e1-6f0e0b7512c1?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOWQ2Njg1OGUtYWNkNC00Y2Q1LTk5ZTEtNmYwZTBiNzUxMmMxP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "5bbc41fa-9722-437c-867e-45682fb970f4" + ], + "x-ms-correlation-request-id": [ + "5bbc41fa-9722-437c-867e-45682fb970f4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194117Z:5bbc41fa-9722-437c-867e-45682fb970f4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:41:16 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9d66858e-acd4-4cd5-99e1-6f0e0b7512c1?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/operationResults/9d66858e-acd4-4cd5-99e1-6f0e0b7512c1?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYk5hbWUzL29wZXJhdGlvblJlc3VsdHMvOWQ2Njg1OGUtYWNkNC00Y2Q1LTk5ZTEtNmYwZTBiNzUxMmMxP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "57ce45c4-434c-4241-a26a-7bf0955294d2" + ], + "x-ms-correlation-request-id": [ + "57ce45c4-434c-4241-a26a-7bf0955294d2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T194117Z:57ce45c4-434c-4241-a26a-7bf0955294d2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 19:41:16 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/dbName3/operationResults/9d66858e-acd4-4cd5-99e1-6f0e0b7512c1?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlThroughputCmdlets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlThroughputCmdlets.json new file mode 100644 index 000000000000..26ee5364e28f --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlThroughputCmdlets.json @@ -0,0 +1,2168 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"dbName3\"\r\n },\r\n \"options\": {\r\n \"Throughput\": \"1200\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "35c87f97-c541-448f-b197-cf42f9ee535c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "131" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/operationResults/82638618-2c99-4da9-875b-6bb91b4908fd?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/82638618-2c99-4da9-875b-6bb91b4908fd?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "82638618-2c99-4da9-875b-6bb91b4908fd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "685008bc-86e2-4ce7-8f2b-a7abf0b48292" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235544Z:685008bc-86e2-4ce7-8f2b-a7abf0b48292" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:55:44 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/82638618-2c99-4da9-875b-6bb91b4908fd?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvODI2Mzg2MTgtMmM5OS00ZGE5LTg3NWItNmJiOTFiNDkwOGZkP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "993acc3d-3eee-471c-b521-00bd70ca38a8" + ], + "x-ms-correlation-request-id": [ + "993acc3d-3eee-471c-b521-00bd70ca38a8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235615Z:993acc3d-3eee-471c-b521-00bd70ca38a8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:56:15 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/82638618-2c99-4da9-875b-6bb91b4908fd?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "caf4bffb-c71b-4e72-a12a-e83e3d4c2302" + ], + "x-ms-correlation-request-id": [ + "caf4bffb-c71b-4e72-a12a-e83e3d4c2302" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235615Z:caf4bffb-c71b-4e72-a12a-e83e3d4c2302" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:56:15 GMT" + ], + "Content-Length": [ + "446" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"dbName3\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"dbName3\",\r\n \"_rid\": \"yj9cAA==\",\r\n \"_self\": \"dbs/yj9cAA==/\",\r\n \"_etag\": \"\\\"00002300-0000-0700-0000-5e8515090000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1585779977\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "330c6193-9c0b-485e-8a9f-7d760119ecc4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "1b04ebe2-1ffb-40bc-a912-a9d3831fac76" + ], + "x-ms-correlation-request-id": [ + "1b04ebe2-1ffb-40bc-a912-a9d3831fac76" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235616Z:1b04ebe2-1ffb-40bc-a912-a9d3831fac76" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:56:16 GMT" + ], + "Content-Length": [ + "372" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings\",\r\n \"name\": \"npDk\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1200,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "feecb112-2eba-4924-b34c-2dbd632eaacf" + ], + "x-ms-correlation-request-id": [ + "feecb112-2eba-4924-b34c-2dbd632eaacf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235647Z:feecb112-2eba-4924-b34c-2dbd632eaacf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:56:47 GMT" + ], + "Content-Length": [ + "372" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings\",\r\n \"name\": \"npDk\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "10195e5f-67e0-4b52-b956-1344418ba449" + ], + "x-ms-correlation-request-id": [ + "10195e5f-67e0-4b52-b956-1344418ba449" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235719Z:10195e5f-67e0-4b52-b956-1344418ba449" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:57:19 GMT" + ], + "Content-Length": [ + "372" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings\",\r\n \"name\": \"npDk\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "70279cf1-b7c4-48fc-b702-1ba2a79643a7" + ], + "x-ms-correlation-request-id": [ + "70279cf1-b7c4-48fc-b702-1ba2a79643a7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235751Z:70279cf1-b7c4-48fc-b702-1ba2a79643a7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:57:51 GMT" + ], + "Content-Length": [ + "371" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings\",\r\n \"name\": \"npDk\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "501bf06d-5674-4d8e-a544-b39d855572de" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default/operationResults/984c2ca5-40b0-4227-bbf4-396cea96fd97?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/984c2ca5-40b0-4227-bbf4-396cea96fd97?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "984c2ca5-40b0-4227-bbf4-396cea96fd97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "45cd77f7-c434-4612-bdbf-d0aca72080d4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235617Z:45cd77f7-c434-4612-bdbf-d0aca72080d4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:56:17 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "22cbd649-cb09-4669-a761-dbc1406840bb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default/operationResults/0718051e-4f75-4282-9a1f-c9f031cc263c?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/0718051e-4f75-4282-9a1f-c9f031cc263c?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "0718051e-4f75-4282-9a1f-c9f031cc263c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "189d035c-7370-41aa-85c0-b304b748ebab" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235649Z:189d035c-7370-41aa-85c0-b304b748ebab" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:56:48 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9a6e5cf6-8076-44cb-91a2-0c444c0d140a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default/operationResults/193fad92-348a-4e2c-8035-78c26aa8fd57?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/193fad92-348a-4e2c-8035-78c26aa8fd57?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "193fad92-348a-4e2c-8035-78c26aa8fd57" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "f88111ed-8c5a-4435-b4c5-42500b4b3c5a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235720Z:f88111ed-8c5a-4435-b4c5-42500b4b3c5a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:57:19 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/984c2ca5-40b0-4227-bbf4-396cea96fd97?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvOTg0YzJjYTUtNDBiMC00MjI3LWJiZjQtMzk2Y2VhOTZmZDk3P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "bdd02c57-8e72-4a0a-b223-3093e9ae6e94" + ], + "x-ms-correlation-request-id": [ + "bdd02c57-8e72-4a0a-b223-3093e9ae6e94" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235647Z:bdd02c57-8e72-4a0a-b223-3093e9ae6e94" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:56:46 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/984c2ca5-40b0-4227-bbf4-396cea96fd97?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/0718051e-4f75-4282-9a1f-c9f031cc263c?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvMDcxODA1MWUtNGY3NS00MjgyLTlhMWYtYzlmMDMxY2MyNjNjP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "8fc06660-b691-4273-bb11-0ca9bd80ad0a" + ], + "x-ms-correlation-request-id": [ + "8fc06660-b691-4273-bb11-0ca9bd80ad0a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235719Z:8fc06660-b691-4273-bb11-0ca9bd80ad0a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:57:18 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/0718051e-4f75-4282-9a1f-c9f031cc263c?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "36f1780a-7ee2-4c34-9fbe-5aa79bfbcbae" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "b4d03380-dcc1-4242-992b-5f946f69aeda" + ], + "x-ms-correlation-request-id": [ + "b4d03380-dcc1-4242-992b-5f946f69aeda" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235719Z:b4d03380-dcc1-4242-992b-5f946f69aeda" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:57:19 GMT" + ], + "Content-Length": [ + "1859" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812\",\r\n \"name\": \"cosmosdb9921232812\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb9921232812.documents.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb9921232812-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb9921232812-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb9921232812-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb9921232812-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb9921232812-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb9921232812-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb9921232812-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": []\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/193fad92-348a-4e2c-8035-78c26aa8fd57?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvMTkzZmFkOTItMzQ4YS00ZTJjLTgwMzUtNzhjMjZhYThmZDU3P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "295e5dbe-dec5-4e34-9c22-4b623c882bc3" + ], + "x-ms-correlation-request-id": [ + "295e5dbe-dec5-4e34-9c22-4b623c882bc3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235751Z:295e5dbe-dec5-4e34-9c22-4b623c882bc3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:57:51 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/193fad92-348a-4e2c-8035-78c26aa8fd57?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZT9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName\",\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"Throughput\": \"800\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cb45ae52-86e7-477b-b139-a3e086fcaa20" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "249" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/operationResults/a47aa1b8-e356-42ce-8ec9-5925c65b4d1d?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a47aa1b8-e356-42ce-8ec9-5925c65b4d1d?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "a47aa1b8-e356-42ce-8ec9-5925c65b4d1d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "39308d22-a99d-46d5-b1fd-06f4fdcc5967" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235752Z:39308d22-a99d-46d5-b1fd-06f4fdcc5967" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:57:52 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a47aa1b8-e356-42ce-8ec9-5925c65b4d1d?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvYTQ3YWExYjgtZTM1Ni00MmNlLThlYzktNTkyNWM2NWI0ZDFkP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "5ee5ddbc-8a23-43c7-b59a-81faa2c0a8fd" + ], + "x-ms-correlation-request-id": [ + "5ee5ddbc-8a23-43c7-b59a-81faa2c0a8fd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235822Z:5ee5ddbc-8a23-43c7-b59a-81faa2c0a8fd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:58:22 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/a47aa1b8-e356-42ce-8ec9-5925c65b4d1d?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZT9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "b980dca2-2ad1-4586-b092-3604484019ca" + ], + "x-ms-correlation-request-id": [ + "b980dca2-2ad1-4586-b092-3604484019ca" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235823Z:b980dca2-2ad1-4586-b092-3604484019ca" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:58:22 GMT" + ], + "Content-Length": [ + "1043" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"containerName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"yj9cAMH2MFg=\",\r\n \"_ts\": 1585785476,\r\n \"_self\": \"dbs/yj9cAA==/colls/yj9cAMH2MFg=/\",\r\n \"_etag\": \"\\\"00003a00-0000-0700-0000-5e852a840000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "19d5742f-5f10-4007-a81f-c43c328ea4dd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "70460c88-5f7e-42c9-9cd7-8f53b151ce7f" + ], + "x-ms-correlation-request-id": [ + "70460c88-5f7e-42c9-9cd7-8f53b151ce7f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235823Z:70460c88-5f7e-42c9-9cd7-8f53b151ce7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:58:23 GMT" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings\",\r\n \"name\": \"eVaR\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 800,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "ba8764e3-995c-422e-8ae6-443af023870d" + ], + "x-ms-correlation-request-id": [ + "ba8764e3-995c-422e-8ae6-443af023870d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235855Z:ba8764e3-995c-422e-8ae6-443af023870d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:58:54 GMT" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings\",\r\n \"name\": \"eVaR\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "b7f83ec8-50c1-45ac-b7a5-e2bcad64d3f9" + ], + "x-ms-correlation-request-id": [ + "b7f83ec8-50c1-45ac-b7a5-e2bcad64d3f9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235927Z:b7f83ec8-50c1-45ac-b7a5-e2bcad64d3f9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:59:27 GMT" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings\",\r\n \"name\": \"eVaR\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 600,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "fecf77cc-256f-4f48-ad53-3bcad694647a" + ], + "x-ms-correlation-request-id": [ + "fecf77cc-256f-4f48-ad53-3bcad694647a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235959Z:fecf77cc-256f-4f48-ad53-3bcad694647a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:59:59 GMT" + ], + "Content-Length": [ + "407" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings\",\r\n \"name\": \"eVaR\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 500,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c4276694-db0e-444a-ac39-46a0f1af70c2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default/operationResults/1271216c-71fb-4615-850b-1c7a9a48e716?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1271216c-71fb-4615-850b-1c7a9a48e716?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "1271216c-71fb-4615-850b-1c7a9a48e716" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "199963fd-cb28-4cff-adf7-ce56e69aca3f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235824Z:199963fd-cb28-4cff-adf7-ce56e69aca3f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:58:23 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 600\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fd6eca14-044e-4615-accd-be0a3fcfeff3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default/operationResults/4c99d626-2346-4b7c-9cd5-015cb095500d?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4c99d626-2346-4b7c-9cd5-015cb095500d?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "4c99d626-2346-4b7c-9cd5-015cb095500d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "1dd48b76-651c-4006-92d6-766939093698" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235856Z:1dd48b76-651c-4006-92d6-766939093698" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:58:55 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZS90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 500\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4e215d78-8ce3-469c-beed-2a40ed96716e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default/operationResults/59ccd947-59d4-4e54-9e13-a0d6ccfe7f96?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/59ccd947-59d4-4e54-9e13-a0d6ccfe7f96?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "59ccd947-59d4-4e54-9e13-a0d6ccfe7f96" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "1ab45ec7-606c-4a64-886b-57bc092c7b4c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235928Z:1ab45ec7-606c-4a64-886b-57bc092c7b4c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:59:28 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1271216c-71fb-4615-850b-1c7a9a48e716?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvMTI3MTIxNmMtNzFmYi00NjE1LTg1MGItMWM3YTlhNDhlNzE2P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "bfa56d54-7edc-422a-a451-a75b5428a9be" + ], + "x-ms-correlation-request-id": [ + "bfa56d54-7edc-422a-a451-a75b5428a9be" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235854Z:bfa56d54-7edc-422a-a451-a75b5428a9be" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:58:54 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1271216c-71fb-4615-850b-1c7a9a48e716?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4c99d626-2346-4b7c-9cd5-015cb095500d?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNGM5OWQ2MjYtMjM0Ni00YjdjLTljZDUtMDE1Y2IwOTU1MDBkP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "c3eb47eb-f13d-4e08-9a1d-109c959299bf" + ], + "x-ms-correlation-request-id": [ + "c3eb47eb-f13d-4e08-9a1d-109c959299bf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235926Z:c3eb47eb-f13d-4e08-9a1d-109c959299bf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:59:26 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/4c99d626-2346-4b7c-9cd5-015cb095500d?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/59ccd947-59d4-4e54-9e13-a0d6ccfe7f96?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNTljY2Q5NDctNTlkNC00ZTU0LTllMTMtYTBkNmNjZmU3Zjk2P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "3ed2fd77-4602-4cad-b7d0-ecaf0e669e42" + ], + "x-ms-correlation-request-id": [ + "3ed2fd77-4602-4cad-b7d0-ecaf0e669e42" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235958Z:3ed2fd77-4602-4cad-b7d0-ecaf0e669e42" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:59:58 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/59ccd947-59d4-4e54-9e13-a0d6ccfe7f96?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZT9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "118a8712-8de8-45e1-a0ac-13cd036361c7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/operationResults/2e8d61f1-ab11-49b5-8938-f44873e5fd93?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/2e8d61f1-ab11-49b5-8938-f44873e5fd93?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "2e8d61f1-ab11-49b5-8938-f44873e5fd93" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "fcbf4104-5821-4038-803c-e04debbd75b8" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200401T235959Z:fcbf4104-5821-4038-803c-e04debbd75b8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 01 Apr 2020 23:59:59 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/2e8d61f1-ab11-49b5-8938-f44873e5fd93?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvMmU4ZDYxZjEtYWIxMS00OWI1LTg5MzgtZjQ0ODczZTVmZDkzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "02ad3b65-f5ea-470b-a2ca-4f379ffadaa2" + ], + "x-ms-correlation-request-id": [ + "02ad3b65-f5ea-470b-a2ca-4f379ffadaa2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T000030Z:02ad3b65-f5ea-470b-a2ca-4f379ffadaa2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 00:00:29 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/2e8d61f1-ab11-49b5-8938-f44873e5fd93?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/operationResults/2e8d61f1-ab11-49b5-8938-f44873e5fd93?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL2NvbnRhaW5lcnMvY29udGFpbmVyTmFtZS9vcGVyYXRpb25SZXN1bHRzLzJlOGQ2MWYxLWFiMTEtNDliNS04OTM4LWY0NDg3M2U1ZmQ5Mz9hcGktdmVyc2lvbj0yMDE5LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "55110ca1-0f70-481f-b014-a09a3307418a" + ], + "x-ms-correlation-request-id": [ + "55110ca1-0f70-481f-b014-a09a3307418a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T000030Z:55110ca1-0f70-481f-b014-a09a3307418a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 00:00:29 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/containers/containerName/operationResults/2e8d61f1-ab11-49b5-8938-f44873e5fd93?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5f504de1-d332-442f-a8f4-e523fc3745d9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/operationResults/1b16ccf6-4f51-4eed-8e4b-2ff323a0552f?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1b16ccf6-4f51-4eed-8e4b-2ff323a0552f?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "1b16ccf6-4f51-4eed-8e4b-2ff323a0552f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "7c47550e-43ea-474b-9ebb-d4f601c1bde3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T000031Z:7c47550e-43ea-474b-9ebb-d4f601c1bde3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 00:00:30 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1b16ccf6-4f51-4eed-8e4b-2ff323a0552f?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvMWIxNmNjZjYtNGY1MS00ZWVkLThlNGItMmZmMzIzYTA1NTJmP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "bf27a655-958a-4400-888f-091b7ac7f351" + ], + "x-ms-correlation-request-id": [ + "bf27a655-958a-4400-888f-091b7ac7f351" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T000101Z:bf27a655-958a-4400-888f-091b7ac7f351" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 00:01:00 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/1b16ccf6-4f51-4eed-8e4b-2ff323a0552f?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/operationResults/1b16ccf6-4f51-4eed-8e4b-2ff323a0552f?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL3JndGVzdDk5MjEyMzI4MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY29zbW9zZGI5OTIxMjMyODEyL3NxbERhdGFiYXNlcy9kYk5hbWUzL29wZXJhdGlvblJlc3VsdHMvMWIxNmNjZjYtNGY1MS00ZWVkLThlNGItMmZmMzIzYTA1NTJmP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "81546e8d-3171-4751-816c-536de6ef9822" + ], + "x-ms-correlation-request-id": [ + "81546e8d-3171-4751-816c-536de6ef9822" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T000101Z:81546e8d-3171-4751-816c-536de6ef9822" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 00:01:00 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb9921232812/sqlDatabases/dbName3/operationResults/1b16ccf6-4f51-4eed-8e4b-2ff323a0552f?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.TableOperationsTests/TestTableThroughputCmdlets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.TableOperationsTests/TestTableThroughputCmdlets.json new file mode 100644 index 000000000000..f241767482f5 --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.TableOperationsTests/TestTableThroughputCmdlets.json @@ -0,0 +1,1121 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName3\"\r\n },\r\n \"options\": {\r\n \"Throughput\": \"1200\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "32809554-e921-41d6-81c5-1864c00570f1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "134" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/operationResults/91937a0c-9f7e-46bb-a2a4-7006a3c22535?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/91937a0c-9f7e-46bb-a2a4-7006a3c22535?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "91937a0c-9f7e-46bb-a2a4-7006a3c22535" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "24340fe4-7cc4-41f0-84f6-57097e5d3c59" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201225Z:24340fe4-7cc4-41f0-84f6-57097e5d3c59" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:12:24 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/91937a0c-9f7e-46bb-a2a4-7006a3c22535?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOTE5MzdhMGMtOWY3ZS00NmJiLWEyYTQtNzAwNmEzYzIyNTM1P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-request-id": [ + "dfa27733-f5e9-4b7f-8cef-7341e9698cde" + ], + "x-ms-correlation-request-id": [ + "dfa27733-f5e9-4b7f-8cef-7341e9698cde" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201255Z:dfa27733-f5e9-4b7f-8cef-7341e9698cde" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:12:54 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/91937a0c-9f7e-46bb-a2a4-7006a3c22535?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-request-id": [ + "787510ba-8a66-4cb8-bc61-e4f1a7de9abe" + ], + "x-ms-correlation-request-id": [ + "787510ba-8a66-4cb8-bc61-e4f1a7de9abe" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201255Z:787510ba-8a66-4cb8-bc61-e4f1a7de9abe" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:12:54 GMT" + ], + "Content-Length": [ + "384" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName3\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName3\",\r\n \"_rid\": \"bilIANXXTtY=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-085b-5207240101d6\\\"\",\r\n \"_ts\": 1585769136\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "000264c3-c772-4d48-bf3f-e28e09d2459b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-request-id": [ + "4b372869-549c-47e4-8dce-8396587e2848" + ], + "x-ms-correlation-request-id": [ + "4b372869-549c-47e4-8dce-8396587e2848" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201256Z:4b372869-549c-47e4-8dce-8396587e2848" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:12:55 GMT" + ], + "Content-Length": [ + "360" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings\",\r\n \"name\": \"Cz7p\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1200,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-request-id": [ + "1327db8f-2fe9-4c18-9c69-9dd6028b9281" + ], + "x-ms-correlation-request-id": [ + "1327db8f-2fe9-4c18-9c69-9dd6028b9281" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201327Z:1327db8f-2fe9-4c18-9c69-9dd6028b9281" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:13:27 GMT" + ], + "Content-Length": [ + "360" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings\",\r\n \"name\": \"Cz7p\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-request-id": [ + "340d0f36-d77d-4684-b7b5-a11e688b1970" + ], + "x-ms-correlation-request-id": [ + "340d0f36-d77d-4684-b7b5-a11e688b1970" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201358Z:340d0f36-d77d-4684-b7b5-a11e688b1970" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:13:58 GMT" + ], + "Content-Length": [ + "360" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings\",\r\n \"name\": \"Cz7p\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-request-id": [ + "e205fb2f-19cd-4f31-b7b6-459ee5a5f6e3" + ], + "x-ms-correlation-request-id": [ + "e205fb2f-19cd-4f31-b7b6-459ee5a5f6e3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201429Z:e205fb2f-19cd-4f31-b7b6-459ee5a5f6e3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:14:29 GMT" + ], + "Content-Length": [ + "359" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings\",\r\n \"name\": \"Cz7p\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1100\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0d37a15b-1a51-4ee5-af9f-e83f97612f3f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default/operationResults/abb7ff84-766d-487c-baf2-d726d6ed45ed?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/abb7ff84-766d-487c-baf2-d726d6ed45ed?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "abb7ff84-766d-487c-baf2-d726d6ed45ed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "79545835-bece-40b1-8ba5-e5cee9e4d35b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201256Z:79545835-bece-40b1-8ba5-e5cee9e4d35b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:12:55 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 1000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "09547146-4322-4fc1-a49c-363c364b0017" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default/operationResults/81124129-19d5-458c-8dc1-50676dfcf5be?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/81124129-19d5-458c-8dc1-50676dfcf5be?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "81124129-19d5-458c-8dc1-50676dfcf5be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "de167ab3-6306-4577-8aac-52da3dbf992f" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201327Z:de167ab3-6306-4577-8aac-52da3dbf992f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:13:27 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 900\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "338b9a0f-e4be-4686-96b6-88b6ccbbd38f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "79" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default/operationResults/f6e51d7f-8a1f-4cb2-a684-94e365297310?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/f6e51d7f-8a1f-4cb2-a684-94e365297310?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "f6e51d7f-8a1f-4cb2-a684-94e365297310" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "6c81086e-4c19-401e-b9b0-65150dc484ce" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201358Z:6c81086e-4c19-401e-b9b0-65150dc484ce" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:13:58 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/throughputSettings/default?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/abb7ff84-766d-487c-baf2-d726d6ed45ed?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvYWJiN2ZmODQtNzY2ZC00ODdjLWJhZjItZDcyNmQ2ZWQ0NWVkP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-request-id": [ + "306c12b0-80c1-4177-b0e0-c5957185718e" + ], + "x-ms-correlation-request-id": [ + "306c12b0-80c1-4177-b0e0-c5957185718e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201326Z:306c12b0-80c1-4177-b0e0-c5957185718e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:13:26 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/abb7ff84-766d-487c-baf2-d726d6ed45ed?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3P2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8880a6a5-191d-47c2-b03d-6eda01d86262" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-request-id": [ + "786b8758-d1fe-43a0-9594-e823527a261a" + ], + "x-ms-correlation-request-id": [ + "786b8758-d1fe-43a0-9594-e823527a261a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201327Z:786b8758-d1fe-43a0-9594-e823527a261a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:13:27 GMT" + ], + "Content-Length": [ + "1827" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527\",\r\n \"name\": \"db2527\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db2527.documents.azure.com:443/\",\r\n \"tableEndpoint\": \"https://db2527.table.cosmos.azure.com:443/\",\r\n \"ipRangeFilter\": \"\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"apiProperties\": null,\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db2527-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db2527-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db2527-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db2527-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db2527-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://db2527-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db2527-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/81124129-19d5-458c-8dc1-50676dfcf5be?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvODExMjQxMjktMTlkNS00NThjLThkYzEtNTA2NzZkZmNmNWJlP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-request-id": [ + "9e7ad53f-706c-42a8-8920-49527a809e0c" + ], + "x-ms-correlation-request-id": [ + "9e7ad53f-706c-42a8-8920-49527a809e0c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201357Z:9e7ad53f-706c-42a8-8920-49527a809e0c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:13:57 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/81124129-19d5-458c-8dc1-50676dfcf5be?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/f6e51d7f-8a1f-4cb2-a684-94e365297310?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjZlNTFkN2YtOGExZi00Y2IyLWE2ODQtOTRlMzY1Mjk3MzEwP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-request-id": [ + "6d9247a2-23d9-4c3a-a947-e2966c1f3356" + ], + "x-ms-correlation-request-id": [ + "6d9247a2-23d9-4c3a-a947-e2966c1f3356" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201429Z:6d9247a2-23d9-4c3a-a947-e2966c1f3356" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:14:28 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/f6e51d7f-8a1f-4cb2-a684-94e365297310?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b063de2-fe55-411d-b724-d1c67a59be59" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/operationResults/56168366-2e5a-4279-abd4-3566a603758e?api-version=2019-08-01" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/56168366-2e5a-4279-abd4-3566a603758e?api-version=2019-08-01" + ], + "x-ms-request-id": [ + "56168366-2e5a-4279-abd4-3566a603758e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "90666150-c58e-40eb-ac5d-cf1892b98676" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201429Z:90666150-c58e-40eb-ac5d-cf1892b98676" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:14:29 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/56168366-2e5a-4279-abd4-3566a603758e?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNTYxNjgzNjYtMmU1YS00Mjc5LWFiZDQtMzU2NmE2MDM3NThlP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-request-id": [ + "7aa262b8-a537-4aa9-b3d6-ab83993aac0b" + ], + "x-ms-correlation-request-id": [ + "7aa262b8-a537-4aa9-b3d6-ab83993aac0b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201459Z:7aa262b8-a537-4aa9-b3d6-ab83993aac0b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:14:59 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/56168366-2e5a-4279-abd4-3566a603758e?api-version=2019-08-01" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/operationResults/56168366-2e5a-4279-abd4-3566a603758e?api-version=2019-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDI1MTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyNTI3L3RhYmxlcy90YWJsZU5hbWUzL29wZXJhdGlvblJlc3VsdHMvNTYxNjgzNjYtMmU1YS00Mjc5LWFiZDQtMzU2NmE2MDM3NThlP2FwaS12ZXJzaW9uPTIwMTktMDgtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/1.0.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.10.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "9a04e672-ea25-4c37-affd-1aafffa9bb72" + ], + "x-ms-correlation-request-id": [ + "9a04e672-ea25-4c37-affd-1aafffa9bb72" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200402T201500Z:9a04e672-ea25-4c37-affd-1aafffa9bb72" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 02 Apr 2020 20:14:59 GMT" + ], + "Content-Type": [ + "application/json" + ], + "Content-Location": [ + "https://management.documents.azure.com:450/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup2510/providers/Microsoft.DocumentDB/databaseAccounts/db2527/tables/tableName3/operationResults/56168366-2e5a-4279-abd4-3566a603758e?api-version=2019-08-01" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 b/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 index 432c12ad3209..b3116b19f5f6 100644 --- a/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 +++ b/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 @@ -128,7 +128,12 @@ CmdletsToExport = 'Get-AzCosmosDBSqlContainer', 'Remove-AzCosmosDBMongoDBCollection', 'Remove-AzCosmosDBMongoDBDatabase', 'Set-AzCosmosDBMongoDBCollection', 'Set-AzCosmosDBMongoDBDatabase', - 'New-AzCosmosDBMongoDBIndex' + 'New-AzCosmosDBMongoDBIndex', + "Update-AzCosmosDBSqlContainerThroughput", "Update-AzCosmosDBSqlDatabaseThroughput", + "Update-AzCosmosDBMongoDBCollectionThroughput", "Update-AzCosmosDBMongoDBDatabaseThroughput", + "Update-AzCosmosDBGremlinGraphThroughput", "Update-AzCosmosDBGremlinDatabaseThroughput", + "Update-AzCosmosDBCassandraTableThroughput", "Update-AzCosmosDBCassandraKeyspaceThroughput", + "Update-AzCosmosDBTableThroughput" # Variables to export from this module # VariablesToExport = @() diff --git a/src/CosmosDB/CosmosDB/Cassandra/UpdateAzCosmosDBCassandraKeyspaceThroughput.cs b/src/CosmosDB/CosmosDB/Cassandra/UpdateAzCosmosDBCassandraKeyspaceThroughput.cs new file mode 100644 index 000000000000..e6f391249790 --- /dev/null +++ b/src/CosmosDB/CosmosDB/Cassandra/UpdateAzCosmosDBCassandraKeyspaceThroughput.cs @@ -0,0 +1,87 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.CosmosDB; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBCassandraKeyspaceThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBCassandraKeyspaceThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.KeyspaceNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.CassandraKeyspaceThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.AccountObjectHelpMessage)] + [ValidateNotNull] + public PSDatabaseAccount ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.CassandraKeyspaceObjectHelpMessage)] + [ValidateNotNull] + public PSCassandraKeyspaceGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + AccountName = resourceIdentifier.ResourceName; + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB Cassandra Keyspace")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.CassandraResources.UpdateCassandraKeyspaceThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/Cassandra/UpdateAzCosmosDBCassandraTableThroughput.cs b/src/CosmosDB/CosmosDB/Cassandra/UpdateAzCosmosDBCassandraTableThroughput.cs new file mode 100644 index 000000000000..856afe777793 --- /dev/null +++ b/src/CosmosDB/CosmosDB/Cassandra/UpdateAzCosmosDBCassandraTableThroughput.cs @@ -0,0 +1,92 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Management.CosmosDB.Models; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBCassandraTableThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBCassandraTableThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.KeyspaceNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string KeyspaceName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.CassandraTableNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.CassandraTableThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.CassandraKeyspaceObjectHelpMessage)] + [ValidateNotNull] + public PSCassandraKeyspaceGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.CassandraTableObjectHelpMessage)] + [ValidateNotNull] + public PSCassandraTableGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + KeyspaceName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + KeyspaceName = ResourceIdentifierExtensions.GetCassandraKeyspaceName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB Cassandra Table")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.CassandraResources.UpdateCassandraTableThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, KeyspaceName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/ChangeLog.md b/src/CosmosDB/CosmosDB/ChangeLog.md index c85a358fe9da..211808f1ffd0 100644 --- a/src/CosmosDB/CosmosDB/ChangeLog.md +++ b/src/CosmosDB/CosmosDB/ChangeLog.md @@ -19,7 +19,17 @@ --> ## Upcoming Release - +* Changes in New-AzCosmosDBAccount and Update-AzCosmosDBAccount + - Allows empty string as a value for IpRangeFilter + - Renamed ApiKind value GlobalDocumentDB to Sql. + - Added parameter DisableKeyBasedMetadataWriteAccess +* Introduces cmdlets to update throughput for Sql Database and Container, Cassandra Keyspace and Table, MongoDB Database and Collection, Gremlin Database and Graph and Table. + - Update-AzCosmosDBSqlContainerThroughput, Update-AzCosmosDBSqlDatabaseThroughput, + Update-AzCosmosDBMongoDBCollectionThroughput, Update-AzCosmosDBMongoDBDatabaseThroughput, + Update-AzCosmosDBGremlinGraphThroughput, Update-AzCosmosDBGremlinDatabaseThroughput, + Update-AzCosmosDBCassandraTableThroughput, Update-AzCosmosDBCassandraKeyspaceThroughput, + Update-AzCosmosDBTableThroughput + ## Version 0.1.3 * Allowing Account Creation for API Types: Gremlin, Cassandra and Table. * Bug Fixes diff --git a/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs b/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs index 3c8cf6ad5100..8027cc5c0c70 100644 --- a/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs +++ b/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs @@ -16,6 +16,7 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Linq; using System.Management.Automation; using Microsoft.Azure.Commands.CosmosDB.Helpers; using Microsoft.Azure.Commands.CosmosDB.Models; @@ -51,7 +52,7 @@ public class NewAzCosmosDBAccount : AzureCosmosDBCmdletBase public SwitchParameter EnableVirtualNetwork { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.IpRangeFilterHelpMessage)] - [ValidateNotNullOrEmpty] + [ValidateNotNull] public string[] IpRangeFilter { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.LocationHelpMessage)] @@ -81,9 +82,12 @@ public class NewAzCosmosDBAccount : AzureCosmosDBCmdletBase public PSVirtualNetworkRule[] VirtualNetworkRuleObject { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.ApiKindHelpMessage)] - [PSArgumentCompleter("GlobalDocumentDB", "MongoDB", "Gremlin", "Cassandra", "Table")] + [PSArgumentCompleter("Sql", "MongoDB", "Gremlin", "Cassandra", "Table")] public string ApiKind { get; set; } + [Parameter(Mandatory = false, HelpMessage = Constants.DisableKeyBasedMetadataWriteAccessHelpMessage)] + public SwitchParameter DisableKeyBasedMetadataWriteAccess { get; set; } + [Parameter(Mandatory = false, HelpMessage = Constants.AsJobHelpMessage)] public SwitchParameter AsJob { get; set; } @@ -191,15 +195,7 @@ public override void ExecuteCmdlet() string IpRangeFilterAsString = null; if (IpRangeFilter != null && IpRangeFilter.Length > 0) { - for (int i = 0; i < IpRangeFilter.Length; i++) - { - if (i == 0) - { - IpRangeFilterAsString = IpRangeFilter[0]; - } - else - IpRangeFilterAsString = string.Concat(IpRangeFilterAsString, ",", IpRangeFilter[i]); - } + IpRangeFilterAsString = IpRangeFilter?.Aggregate(string.Empty, (output, next) => string.Concat(output, (!string.IsNullOrWhiteSpace(output) && !string.IsNullOrWhiteSpace(next) ? "," : string.Empty), next)) ?? string.Empty; } DatabaseAccountCreateUpdateParameters databaseAccountCreateUpdateParameters = new DatabaseAccountCreateUpdateParameters(locations:LocationCollection, location: writeLocation, name:Name, consistencyPolicy:consistencyPolicy, tags:tags, ipRangeFilter:IpRangeFilterAsString); @@ -207,10 +203,12 @@ public override void ExecuteCmdlet() databaseAccountCreateUpdateParameters.IsVirtualNetworkFilterEnabled = EnableVirtualNetwork; databaseAccountCreateUpdateParameters.EnableAutomaticFailover = EnableAutomaticFailover; databaseAccountCreateUpdateParameters.VirtualNetworkRules = virtualNetworkRule; + databaseAccountCreateUpdateParameters.DisableKeyBasedMetadataWriteAccess = DisableKeyBasedMetadataWriteAccess; + databaseAccountCreateUpdateParameters.IpRangeFilter = IpRangeFilterAsString; if (!string.IsNullOrEmpty(ApiKind)) { - if (!ApiKind.Equals("GlobalDocumentDB", StringComparison.OrdinalIgnoreCase) && !ApiKind.Equals("MongoDB", StringComparison.OrdinalIgnoreCase)) + if (!ApiKind.Equals("MongoDB", StringComparison.OrdinalIgnoreCase)) { switch (ApiKind) { @@ -223,6 +221,8 @@ public override void ExecuteCmdlet() case "Table": databaseAccountCreateUpdateParameters.Capabilities = new List { new Capability { Name = "EnableTable" } }; break; + case "Sql": + break; } ApiKind = null; diff --git a/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs b/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs index 8d0313c4d320..ad21cc2ff6ee 100644 --- a/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs +++ b/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs @@ -51,16 +51,16 @@ public class UpdateAzCosmosDBAccount : AzureCosmosDBCmdletBase public string DefaultConsistencyLevel { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.EnableAutomaticFailoverHelpMessage)] - public bool EnableAutomaticFailover { get; set; } + public bool? EnableAutomaticFailover { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.EnableMultipleWriteLocationsHelpMessage)] - public bool EnableMultipleWriteLocations { get; set; } + public bool? EnableMultipleWriteLocations { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.EnableVirtualNetworkHelpMessage)] - public bool EnableVirtualNetwork { get; set; } + public bool? EnableVirtualNetwork { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.IpRangeFilterHelpMessage)] - [ValidateNotNullOrEmpty] + [ValidateNotNull] public string[] IpRangeFilter { get; set; } [Parameter(Mandatory = false, HelpMessage = Constants.MaxStalenessIntervalInSecondsHelpMessage)] @@ -81,6 +81,9 @@ public class UpdateAzCosmosDBAccount : AzureCosmosDBCmdletBase [ValidateNotNullOrEmpty] public PSVirtualNetworkRule[] VirtualNetworkRuleObject { get; set; } + [Parameter(Mandatory = false, HelpMessage = Constants.DisableKeyBasedMetadataWriteAccessHelpMessage)] + public bool? DisableKeyBasedMetadataWriteAccess { get; set; } + [Parameter(Mandatory = false, HelpMessage = Constants.AsJobHelpMessage)] public SwitchParameter AsJob { get; set; } @@ -103,10 +106,23 @@ public override void ExecuteCmdlet() DatabaseAccountGetResults readDatabase = CosmosDBManagementClient.DatabaseAccounts.GetWithHttpMessagesAsync(ResourceGroupName, Name).GetAwaiter().GetResult().Body; - DatabaseAccountUpdateParameters databaseAccountUpdateParameters = new DatabaseAccountUpdateParameters(locations: readDatabase.ReadLocations, location: readDatabase.WriteLocations.ElementAt(0).LocationName); - databaseAccountUpdateParameters.EnableMultipleWriteLocations = EnableMultipleWriteLocations; - databaseAccountUpdateParameters.IsVirtualNetworkFilterEnabled = EnableVirtualNetwork; - databaseAccountUpdateParameters.EnableAutomaticFailover = EnableAutomaticFailover; + DatabaseAccountUpdateParameters databaseAccountUpdateParameters = new DatabaseAccountUpdateParameters(locations: readDatabase.Locations, location: readDatabase.WriteLocations.ElementAt(0).LocationName); + if (EnableMultipleWriteLocations != null) + { + databaseAccountUpdateParameters.EnableMultipleWriteLocations = EnableMultipleWriteLocations; + } + if (EnableVirtualNetwork != null) + { + databaseAccountUpdateParameters.IsVirtualNetworkFilterEnabled = EnableVirtualNetwork; + } + if (EnableAutomaticFailover != null) + { + databaseAccountUpdateParameters.EnableAutomaticFailover = EnableAutomaticFailover; + } + if (DisableKeyBasedMetadataWriteAccess != null) + { + databaseAccountUpdateParameters.DisableKeyBasedMetadataWriteAccess = DisableKeyBasedMetadataWriteAccess; + } if (!string.IsNullOrEmpty(DefaultConsistencyLevel)) { @@ -172,20 +188,9 @@ public override void ExecuteCmdlet() databaseAccountUpdateParameters.VirtualNetworkRules = virtualNetworkRule; } - if (IpRangeFilter != null && IpRangeFilter.Length > 0) + if (IpRangeFilter != null) { - string IpRangeFilterAsString = null; - - for (int i = 0; i < IpRangeFilter.Length; i++) - { - if(i==0) - { - IpRangeFilterAsString = IpRangeFilter[0]; - } - else - IpRangeFilterAsString = string.Concat(IpRangeFilterAsString, ",", IpRangeFilter[i]); - } - + string IpRangeFilterAsString = IpRangeFilter?.Aggregate(string.Empty, (output, next) => string.Concat(output, (!string.IsNullOrWhiteSpace(output) && !string.IsNullOrWhiteSpace(next) ? "," : string.Empty), next)) ?? string.Empty; databaseAccountUpdateParameters.IpRangeFilter = IpRangeFilterAsString; } diff --git a/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccountRegion.cs b/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccountRegion.cs index 756a232ed407..029c81b44f79 100644 --- a/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccountRegion.cs +++ b/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccountRegion.cs @@ -76,9 +76,11 @@ public override void ExecuteCmdlet() { if (Location != null && Location.Length > 0) { + int failoverPriority = 0; foreach (string location in Location) { - locations.Add(new Location(location)); + locations.Add(new Location(locationName: location, failoverPriority: failoverPriority)); + failoverPriority++; } } if (LocationObject != null && LocationObject.Length > 0) diff --git a/src/CosmosDB/CosmosDB/Gremlin/UpdateAzCosmosDBGremlinDatabaseThroughput.cs b/src/CosmosDB/CosmosDB/Gremlin/UpdateAzCosmosDBGremlinDatabaseThroughput.cs new file mode 100644 index 000000000000..ae7bb20ff534 --- /dev/null +++ b/src/CosmosDB/CosmosDB/Gremlin/UpdateAzCosmosDBGremlinDatabaseThroughput.cs @@ -0,0 +1,86 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBGremlinDatabaseThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBGremlinDatabaseThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.GremlinDatabaseThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.AccountObjectHelpMessage)] + [ValidateNotNull] + public PSDatabaseAccount ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.GremlinDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSGremlinDatabaseGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + AccountName = resourceIdentifier.ResourceName; + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB Gremlin Database")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.GremlinResources.UpdateGremlinDatabaseThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/Gremlin/UpdateAzCosmosDBGremlinGraphThroughput.cs b/src/CosmosDB/CosmosDB/Gremlin/UpdateAzCosmosDBGremlinGraphThroughput.cs new file mode 100644 index 000000000000..a3ba6ce8855b --- /dev/null +++ b/src/CosmosDB/CosmosDB/Gremlin/UpdateAzCosmosDBGremlinGraphThroughput.cs @@ -0,0 +1,92 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Management.CosmosDB.Models; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBGremlinGraphThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBGremlinGraphThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.GraphNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.GremlinGraphThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.GremlinDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSGremlinDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.GremlinGraphObjectHelpMessage)] + [ValidateNotNull] + public PSGremlinGraphGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetGremlinDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB Gremlin Graph")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.GremlinResources.UpdateGremlinGraphThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, DatabaseName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/Helpers/Constants.cs b/src/CosmosDB/CosmosDB/Helpers/Constants.cs index b86f153fa2b3..9f72655c947a 100644 --- a/src/CosmosDB/CosmosDB/Helpers/Constants.cs +++ b/src/CosmosDB/CosmosDB/Helpers/Constants.cs @@ -45,9 +45,10 @@ internal static class Constants public const string VirtualNetworkRuleObjectHelpMessage = "Array of PSVirtualNetworkRuleObjects for virtual network."; public const string VirtualNetworkRuleIdHelpMessage = "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"; public const string IgnoreMissingVNetServiceEndpointHelpMessage = "Boolean to indicate if to create firewall rule before the virtual network has vnet service endpoint enabled."; - public const string ApiKindHelpMessage = "The type of Cosmos DB database account to create. Accepted values: GlobalDocumentDB, Sql, MongoDB, Gremlin, Table, Cassandra. Default value: GlobalDocumentDB "; + public const string ApiKindHelpMessage = "The type of Cosmos DB database account to create. Accepted values: Sql, MongoDB, Gremlin, Table, Cassandra. Default value: Sql "; public const string AccountKeyTypeHelpMessage = "Value from: {ConnectionStrings, Keys, ReadOnlyKeys}. Default is Keys."; - + public const string DisableKeyBasedMetadataWriteAccessHelpMessage = "Disable write operations on metadata resources (databases, containers, throughput) via account keys"; + //Sql cmdlets help messages public const string DatabaseNameHelpMessage = "Database name."; public const string ContainerNameHelpMessage = "Container name."; @@ -104,7 +105,7 @@ internal static class Constants //MongoDB cmdlets help messages public const string CollectionNameHelpMessage = "Collection name."; public const string MongoDatabaseObjectHelpMessage = "Mongo Database object."; - public const string MongoCollectionObjectHelpMessage = "Sql Container object."; + public const string MongoCollectionObjectHelpMessage = "Mongo Collection object."; public const string MongoCollectionDetailedParamHelpMessage = "If provided then, the cmdlet returns the collection with the corresponding throughput value."; public const string MongoDatabaseDetailedParamHelpMessage = "If provided then, the cmdlet returns the database with the corresponding throughput value."; public const string MongoShardKeyHelpMessage = "Sharding key path."; diff --git a/src/CosmosDB/CosmosDB/Helpers/ResourceIdentifierExtensions.cs b/src/CosmosDB/CosmosDB/Helpers/ResourceIdentifierExtensions.cs index a1abd1c57745..7a57ad86bde4 100644 --- a/src/CosmosDB/CosmosDB/Helpers/ResourceIdentifierExtensions.cs +++ b/src/CosmosDB/CosmosDB/Helpers/ResourceIdentifierExtensions.cs @@ -91,6 +91,11 @@ public static string GetCassandraKeyspaceName(this ResourceIdentifier resourceId return GetChildResourceName(resourceId, CassandraKeyspaces); } + public static string GetTableName(this ResourceIdentifier resourceId) + { + return GetChildResourceName(resourceId, Tables); + } + private static string GetChildResourceName(this ResourceIdentifier resourceId, string resourceType) { var parentResource = resourceId.ParentResource.Split(new[] { '/' }); diff --git a/src/CosmosDB/CosmosDB/Models/PSDatabaseAccount.cs b/src/CosmosDB/CosmosDB/Models/PSDatabaseAccount.cs index bcc8d86d098a..df95d69a9b3d 100644 --- a/src/CosmosDB/CosmosDB/Models/PSDatabaseAccount.cs +++ b/src/CosmosDB/CosmosDB/Models/PSDatabaseAccount.cs @@ -31,6 +31,7 @@ public PSDatabaseAccount(DatabaseAccountGetResults databaseAccountGetResults) Location = databaseAccountGetResults.Location; EnableCassandraConnector = databaseAccountGetResults.EnableCassandraConnector; FailoverPolicies = databaseAccountGetResults.FailoverPolicies; + Locations = databaseAccountGetResults.Locations; ReadLocations = databaseAccountGetResults.ReadLocations; WriteLocations = databaseAccountGetResults.WriteLocations; Capabilities = databaseAccountGetResults.Capabilities; diff --git a/src/CosmosDB/CosmosDB/Models/PSIndexingPolicy.cs b/src/CosmosDB/CosmosDB/Models/PSIndexingPolicy.cs index 82147bab4854..ff894c2badba 100644 --- a/src/CosmosDB/CosmosDB/Models/PSIndexingPolicy.cs +++ b/src/CosmosDB/CosmosDB/Models/PSIndexingPolicy.cs @@ -25,10 +25,10 @@ public PSIndexingPolicy() public PSIndexingPolicy(IndexingPolicy indexingPolicy) { - Automatic = indexingPolicy.Automatic; - IndexingMode = indexingPolicy.IndexingMode; + Automatic = indexingPolicy?.Automatic; + IndexingMode = indexingPolicy?.IndexingMode; - if (indexingPolicy.IncludedPaths != null) + if (indexingPolicy?.IncludedPaths != null) { IncludedPaths = new List(); foreach (IncludedPath includedPath in indexingPolicy.IncludedPaths) @@ -37,7 +37,7 @@ public PSIndexingPolicy(IndexingPolicy indexingPolicy) } } - if (indexingPolicy.ExcludedPaths != null) + if (indexingPolicy?.ExcludedPaths != null) { ExcludedPaths = new List(); foreach (ExcludedPath excludedPath in indexingPolicy.ExcludedPaths) @@ -46,7 +46,7 @@ public PSIndexingPolicy(IndexingPolicy indexingPolicy) } } - if (indexingPolicy.CompositeIndexes != null) + if (indexingPolicy?.CompositeIndexes != null) { CompositeIndexes = new List>(); foreach (IList compositePathList in indexingPolicy.CompositeIndexes) @@ -60,7 +60,7 @@ public PSIndexingPolicy(IndexingPolicy indexingPolicy) } } - if (indexingPolicy.SpatialIndexes != null) + if (indexingPolicy?.SpatialIndexes != null) { SpatialIndexes = new List(); foreach (SpatialSpec spatialSpec in indexingPolicy.SpatialIndexes) diff --git a/src/CosmosDB/CosmosDB/Models/PSUniqueKeyPolicy.cs b/src/CosmosDB/CosmosDB/Models/PSUniqueKeyPolicy.cs index e36097d024ca..a2deaafea5f4 100644 --- a/src/CosmosDB/CosmosDB/Models/PSUniqueKeyPolicy.cs +++ b/src/CosmosDB/CosmosDB/Models/PSUniqueKeyPolicy.cs @@ -26,7 +26,7 @@ public PSUniqueKeyPolicy() public PSUniqueKeyPolicy(UniqueKeyPolicy uniqueKey) { UniqueKeys = new List(); - if (uniqueKey.UniqueKeys != null) + if (uniqueKey?.UniqueKeys != null) { foreach (UniqueKey key in uniqueKey.UniqueKeys) { diff --git a/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBCollectionThroughput.cs b/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBCollectionThroughput.cs new file mode 100644 index 000000000000..436ad1f473ad --- /dev/null +++ b/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBCollectionThroughput.cs @@ -0,0 +1,92 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Management.CosmosDB.Models; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBMongoDBCollectionThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBMongoDBCollectionThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.CollectionNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.SqlContainerThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.MongoDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSMongoDBDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.MongoCollectionObjectHelpMessage)] + [ValidateNotNull] + public PSMongoDBCollectionGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetMongoDBDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB MongoDB Collection")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.MongoDBResources.UpdateMongoDBCollectionThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, DatabaseName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBDatabaseThroughput.cs b/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBDatabaseThroughput.cs new file mode 100644 index 000000000000..e07a5e4cef38 --- /dev/null +++ b/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBDatabaseThroughput.cs @@ -0,0 +1,86 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBMongoDBDatabaseThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBMongoDBDatabaseThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.MongoDatabaseThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.AccountObjectHelpMessage)] + [ValidateNotNull] + public PSDatabaseAccount ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.MongoDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSMongoDBDatabaseGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + AccountName = resourceIdentifier.ResourceName; + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB MongoDB Database")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.MongoDBResources.UpdateMongoDBDatabaseThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlContainer.cs b/src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlContainer.cs index 5f09149da023..a9406d786b57 100644 --- a/src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlContainer.cs +++ b/src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlContainer.cs @@ -68,7 +68,7 @@ public override void ExecuteCmdlet() if (Detailed) { ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.SqlResources.GetSqlContainerThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, DatabaseName, Name).GetAwaiter().GetResult().Body; - WriteObject(throughputSettingsGetResults); + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); } } else diff --git a/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlContainerThroughput.cs b/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlContainerThroughput.cs new file mode 100644 index 000000000000..7f2d9e49f0cd --- /dev/null +++ b/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlContainerThroughput.cs @@ -0,0 +1,93 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Management.CosmosDB.Models; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBSqlContainerThroughput" , DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBSqlContainerThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.ContainerNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.SqlContainerThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.SqlDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSSqlDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.SqlContainerObjectHelpMessage)] + [ValidateNotNull] + public PSSqlContainerGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetSqlDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB Sql Container")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.SqlResources.UpdateSqlContainerThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, DatabaseName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlDatabaseThroughput.cs b/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlDatabaseThroughput.cs new file mode 100644 index 000000000000..7ec4ebf01d2a --- /dev/null +++ b/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlDatabaseThroughput.cs @@ -0,0 +1,86 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBSqlDatabaseThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBSqlDatabaseThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.SqlDatabaseThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.AccountObjectHelpMessage)] + [ValidateNotNull] + public PSDatabaseAccount ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.SqlDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSSqlDatabaseGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + AccountName = resourceIdentifier.ResourceName; + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB Sql Database")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.SqlResources.UpdateSqlDatabaseThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/Table/UpdateAzCosmosDBTableThroughput.cs b/src/CosmosDB/CosmosDB/Table/UpdateAzCosmosDBTableThroughput.cs new file mode 100644 index 000000000000..bd466d96dc30 --- /dev/null +++ b/src/CosmosDB/CosmosDB/Table/UpdateAzCosmosDBTableThroughput.cs @@ -0,0 +1,86 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBTableThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSThroughputSettingsGetResults))] + public class UpdateAzCosmosDBTableThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.TableNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.TableThroughputHelpMessage)] + [ValidateNotNull] + public int Throughput { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.AccountObjectHelpMessage)] + [ValidateNotNull] + public PSDatabaseAccount ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.TableObjectHelpMessage)] + [ValidateNotNull] + public PSTableGetResults InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + AccountName = resourceIdentifier.ResourceName; + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters + { + Resource = new ThroughputSettingsResource + { + Throughput = Throughput + } + }; + + if (ShouldProcess(Name, "Updating the throughput value of a CosmosDB Table")) + { + ThroughputSettingsGetResults throughputSettingsGetResults = CosmosDBManagementClient.TableResources.UpdateTableThroughputWithHttpMessagesAsync(ResourceGroupName, AccountName, Name, throughputSettingsUpdateParameters).GetAwaiter().GetResult().Body; + WriteObject(new PSThroughputSettingsGetResults(throughputSettingsGetResults)); + } + + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md index 858ff6c0dcda..ad3e681802e3 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md @@ -17,8 +17,8 @@ New-AzCosmosDBAccount -ResourceGroupName -Name [-DefaultConsis [-EnableAutomaticFailover] [-EnableMultipleWriteLocations] [-EnableVirtualNetwork] [-IpRangeFilter ] [-Location ] [-LocationObject ] [-MaxStalenessIntervalInSeconds ] [-MaxStalenessPrefix ] [-Tag ] [-VirtualNetworkRule ] - [-VirtualNetworkRuleObject ] [-ApiKind ] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-VirtualNetworkRuleObject ] [-ApiKind ] [-DisableKeyBasedMetadataWriteAccess] + [-AsJob] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -133,6 +133,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisableKeyBasedMetadataWriteAccess +Disable write operations on metadata resources (databases, containers, throughput) via account keys + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -EnableAutomaticFailover Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinCompositePath.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinCompositePath.md index c27ab55b1665..28efb5a8222c 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinCompositePath.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinCompositePath.md @@ -1,7 +1,7 @@ --- external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml Module Name: Az.CosmosDB -online version:https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/new-azcosmosdbgremlincompositepath +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/new-azcosmosdbgremlincompositepath schema: 2.0.0 --- @@ -30,13 +30,14 @@ Path Order ---- ----- /abc Ascending ``` + ## PARAMETERS ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -52,7 +53,7 @@ Gets or sets sort order for composite paths. Possible values include: 'Ascending', 'Descending' ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -68,7 +69,7 @@ The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinConflictResolutionPolicy.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinConflictResolutionPolicy.md index fd8e74ebc969..684aadab6825 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinConflictResolutionPolicy.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinConflictResolutionPolicy.md @@ -30,13 +30,14 @@ Mode ConflictResolutionPath ConflictResolutionProcedure ---- ---------------------- --------------------------- LastWriterWins /myPath ``` + ## PARAMETERS ### -ConflictResolutionProcedure To be provided when the type is custom. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -51,7 +52,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -66,7 +67,7 @@ Accept wildcard characters: False To be provided when the type is LastWriterWins. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -81,7 +82,7 @@ Accept wildcard characters: False Can have the values: LastWriterWins, Custom, Manual. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIncludedPath.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIncludedPath.md index e27fcf00d328..ce1d87378a03 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIncludedPath.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIncludedPath.md @@ -30,13 +30,14 @@ Path Indexes ---- ------- /* {Microsoft.Azure.Commands.CosmosDB.Models.PSIndexes} ``` + ## PARAMETERS ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -51,7 +52,7 @@ Accept wildcard characters: False List of indexes for this path ```yaml -Type: Microsoft.Azure.Commands.CosmosDB.Models.PSIndexes[] +Type: PSIndexes[] Parameter Sets: (All) Aliases: @@ -67,7 +68,7 @@ The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIncludedPathIndex.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIncludedPathIndex.md index 422199e64ddd..2f98da5f8db0 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIncludedPathIndex.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIncludedPathIndex.md @@ -1,7 +1,7 @@ --- external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml Module Name: Az.CosmosDB -online version:https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/new-azcosmosdbgremlinincludedpathindex +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/new-azcosmosdbgremlinincludedpathindex schema: 2.0.0 --- @@ -30,6 +30,7 @@ DataType Precision Kind -------- --------- ---- String -1 Hash ``` + ## PARAMETERS ### -DataType @@ -37,7 +38,7 @@ Datatype for which the indexing behavior is applied to. Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -52,7 +53,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -68,7 +69,7 @@ Indicates the type of index. Possible values include: 'Hash', 'Range', 'Spatial' ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -84,7 +85,7 @@ The precision of the index. -1 is maximum precision. ```yaml -Type: System.Nullable`1[System.Int32] +Type: Int32 Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIndexingPolicy.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIndexingPolicy.md index 551940ac67bf..f59ae4b99c8b 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIndexingPolicy.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinIndexingPolicy.md @@ -52,7 +52,7 @@ SpatialIndexes : {Microsoft.Azure.Commands.CosmosDB.Models.PSSpatialSpec} Bool to indicate if the indexing policy is automatic ```yaml -Type: System.Nullable`1[System.Boolean] +Type: Boolean Parameter Sets: (All) Aliases: @@ -67,7 +67,7 @@ Accept wildcard characters: False Array of array of objects of type Microsoft.Azure.Commands.CosmosDB.PSCompositePath ```yaml -Type: Microsoft.Azure.Commands.CosmosDB.Models.PSCompositePath[][] +Type: PSCompositePath[][] Parameter Sets: (All) Aliases: @@ -82,7 +82,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -97,7 +97,7 @@ Accept wildcard characters: False Array of strings containing excludedPath(Specifies a path within a JSON document to be excluded in the Azure Cosmos DB service.) elements. ```yaml -Type: System.String[] +Type: String[] Parameter Sets: (All) Aliases: @@ -112,7 +112,7 @@ Accept wildcard characters: False Array of strings containing includedPath (Specifies a path within a JSON document to be included in the Azure Cosmos DB service.) elements. ```yaml -Type: Microsoft.Azure.Commands.CosmosDB.Models.PSIncludedPath[] +Type: PSIncludedPath[] Parameter Sets: (All) Aliases: @@ -128,7 +128,7 @@ Indicates the indexing mode. Possible values include: 'Consistent', 'Lazy', 'None' ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -143,7 +143,7 @@ Accept wildcard characters: False Array of objects of type Microsoft.Azure.Commands.CosmosDB.PSSpatialSpec ```yaml -Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSpatialSpec[] +Type: PSSpatialSpec[] Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinSpatialSpec.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinSpatialSpec.md index b3d39672f6d3..9d6caf52df80 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinSpatialSpec.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinSpatialSpec.md @@ -36,7 +36,7 @@ Path Types The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -51,7 +51,7 @@ Accept wildcard characters: False Path in JSON document to index. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -67,7 +67,7 @@ Array of strings with acceptable values: Point, LineString, Polygon, MultiPolygo Represent's paths spatial type. ```yaml -Type: System.String[] +Type: String[] Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinUniqueKey.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinUniqueKey.md index f543e4eb5f65..134b844c793d 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinUniqueKey.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinUniqueKey.md @@ -35,7 +35,7 @@ UniqueKeys The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -50,7 +50,7 @@ Accept wildcard characters: False Array of string of path values ```yaml -Type: System.String[] +Type: String[] Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinUniqueKeyPolicy.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinUniqueKeyPolicy.md index 5e14bf614e17..086547d92e8a 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinUniqueKeyPolicy.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBGremlinUniqueKeyPolicy.md @@ -33,14 +33,13 @@ PS C:\> $uk = New-AzCosmosDBGremlinUniqueKey -Path "abc" {Microsoft.Azure.Commands.CosmosDB.Models.PSSqlUniqueKey, Microsoft.Azure.Commands.CosmosDB.Models.PSSqlUniqueKey} ``` - ## PARAMETERS ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -55,7 +54,7 @@ Accept wildcard characters: False Array of objects of type PSUniqueKey. ```yaml -Type: Microsoft.Azure.Commands.CosmosDB.Models.PSUniqueKey[] +Type: PSUniqueKey[] Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlCompositePath.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlCompositePath.md index 99cff6a97504..0c47ed715d39 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlCompositePath.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlCompositePath.md @@ -30,13 +30,14 @@ Path Order ---- ----- /abc Ascending ``` + ## PARAMETERS ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -52,7 +53,7 @@ Gets or sets sort order for composite paths. Possible values include: 'Ascending', 'Descending' ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -68,7 +69,7 @@ The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlConflictResolutionPolicy.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlConflictResolutionPolicy.md index fc4618ba3d78..1cb15fab89c8 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlConflictResolutionPolicy.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlConflictResolutionPolicy.md @@ -39,7 +39,7 @@ LastWriterWins /myPath To be provided when the type is custom. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -54,7 +54,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -69,7 +69,7 @@ Accept wildcard characters: False To be provided when the type is LastWriterWins. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -84,7 +84,7 @@ Accept wildcard characters: False Can have the values: LastWriterWins, Custom, Manual. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIncludedPath.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIncludedPath.md index d954035c7ad7..fac5f6762fb5 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIncludedPath.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIncludedPath.md @@ -33,13 +33,14 @@ Path Indexes ---- ------- /* {Microsoft.Azure.Commands.CosmosDB.Models.PSIndexes,Microsoft.Azure.Commands.CosmosDB.Models.PSIndexes} ``` + ## PARAMETERS ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -54,7 +55,7 @@ Accept wildcard characters: False List of indexes for this path ```yaml -Type: Microsoft.Azure.Commands.CosmosDB.Models.PSIndexes[] +Type: PSIndexes[] Parameter Sets: (All) Aliases: @@ -70,7 +71,7 @@ The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*) ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIncludedPathIndex.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIncludedPathIndex.md index a7b6147186a6..05007ccb264d 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIncludedPathIndex.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIncludedPathIndex.md @@ -28,8 +28,8 @@ PS C:\> New-AzCosmosDBSqlIncludedPathIndex -DataType String -Precision -1 -Kind DataType Precision Kind -------- --------- ---- String -1 Hash - ``` + ## PARAMETERS ### -DataType @@ -37,7 +37,7 @@ Datatype for which the indexing behavior is applied to. Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -52,7 +52,7 @@ Accept wildcard characters: False The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -68,7 +68,7 @@ Indicates the type of index. Possible values include: 'Hash', 'Range', 'Spatial' ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -84,7 +84,7 @@ The precision of the index. -1 is maximum precision. ```yaml -Type: System.Nullable`1[System.Int32] +Type: Int32 Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIndexingPolicy.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIndexingPolicy.md index 8e1ce2fcef17..186ca0b6c6a0 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIndexingPolicy.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlIndexingPolicy.md @@ -41,7 +41,6 @@ ExcludedPaths : {Microsoft.Azure.Commands.CosmosDB.Models.PSExcludedPath} CompositeIndexes : {Microsoft.Azure.Commands.CosmosDB.Models.PSCompositePath Microsoft.Azure.Commands.CosmosDB.Models.PSCompositePath, Microsoft.Azure.Commands.CosmosDB.Models.PSCompositePath Microsoft.Azure.Commands.CosmosDB.Models.PSCompositePath} SpatialIndexes : {Microsoft.Azure.Commands.CosmosDB.Models.PSSpatialSpec} - ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlSpatialSpec.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlSpatialSpec.md index 17294197d230..be635fec994d 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlSpatialSpec.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlSpatialSpec.md @@ -29,13 +29,14 @@ Path Types ---- ----- /abc {String} ``` + ## PARAMETERS ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. ```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Type: IAzureContextContainer Parameter Sets: (All) Aliases: AzContext, AzureRmContext, AzureCredential @@ -50,7 +51,7 @@ Accept wildcard characters: False Path in JSON document to index. ```yaml -Type: System.String +Type: String Parameter Sets: (All) Aliases: @@ -66,7 +67,7 @@ Array of strings with acceptable values: Point, LineString, Polygon, MultiPolygo Represent's paths spatial type. ```yaml -Type: System.String[] +Type: String[] Parameter Sets: (All) Aliases: diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccount.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccount.md index 3665629344ea..59aeff4674b8 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccount.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccount.md @@ -18,8 +18,8 @@ Update-AzCosmosDBAccount -ResourceGroupName -Name [-DefaultCon [-EnableAutomaticFailover ] [-EnableMultipleWriteLocations ] [-EnableVirtualNetwork ] [-IpRangeFilter ] [-MaxStalenessIntervalInSeconds ] [-MaxStalenessPrefix ] [-Tag ] [-VirtualNetworkRule ] - [-VirtualNetworkRuleObject ] [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-VirtualNetworkRuleObject ] [-DisableKeyBasedMetadataWriteAccess ] [-AsJob] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### ByResourceIdParameterSet @@ -28,8 +28,8 @@ Update-AzCosmosDBAccount -ResourceId [-DefaultConsistencyLevel [-EnableAutomaticFailover ] [-EnableMultipleWriteLocations ] [-EnableVirtualNetwork ] [-IpRangeFilter ] [-MaxStalenessIntervalInSeconds ] [-MaxStalenessPrefix ] [-Tag ] [-VirtualNetworkRule ] - [-VirtualNetworkRuleObject ] [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-VirtualNetworkRuleObject ] [-DisableKeyBasedMetadataWriteAccess ] [-AsJob] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### ByObjectParameterSet @@ -38,8 +38,8 @@ Update-AzCosmosDBAccount -InputObject [-DefaultConsistencyLe [-EnableAutomaticFailover ] [-EnableMultipleWriteLocations ] [-EnableVirtualNetwork ] [-IpRangeFilter ] [-MaxStalenessIntervalInSeconds ] [-MaxStalenessPrefix ] [-Tag ] [-VirtualNetworkRule ] - [-VirtualNetworkRuleObject ] [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-VirtualNetworkRuleObject ] [-DisableKeyBasedMetadataWriteAccess ] [-AsJob] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -137,6 +137,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DisableKeyBasedMetadataWriteAccess +Disable write operations on metadata resources (databases, containers, throughput) via account keys + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -EnableAutomaticFailover Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md index d86a6f0f3d88..47cd2151416b 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md @@ -33,7 +33,10 @@ Update-AzCosmosDBAccountRegion [-Location ] [-LocationObject -AccountName [-Name ] + -Throughput [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBCassandraKeyspaceThroughput [-Name ] -Throughput + -ParentObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBCassandraKeyspaceThroughput [-Name ] -Throughput + -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBCassandraKeyspaceThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myKeyspaceName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/cassandraKeyspace/{myKeyspaceName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +CosmosDB Account object + +```yaml +Type: PSCassandraKeyspaceGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Cassandra Keyspace Name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +CosmosDB Account object + +```yaml +Type: PSDatabaseAccount +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of Cassandra Keyspace (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSDatabaseAccount + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md new file mode 100644 index 000000000000..d600e1b907db --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md @@ -0,0 +1,215 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbcassandratablethroughput +schema: 2.0.0 +--- + +# Update-AzCosmosDBCassandraTableThroughput + +## SYNOPSIS +Updates the throughput value of a CosmosDB Cassandra Table. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBCassandraTableThroughput -ResourceGroupName -AccountName + -KeyspaceName [-Name ] -Throughput [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBCassandraTableThroughput [-Name ] -Throughput + -ParentObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBCassandraTableThroughput [-Name ] -Throughput + -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBCassandraTableThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -KeyspaceName {myKeyspacename} -Name {myTableName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/cassandraKeyspace/{myKeyspaceName}/tables/{myTableName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Cassandra Keyspace object. + +```yaml +Type: PSCassandraTableGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -KeyspaceName +Cassandra Keyspace Name. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Cassandra Table Name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Cassandra Keyspace object. + +```yaml +Type: PSCassandraKeyspaceGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of Cassandra Keyspace (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSCassandraKeyspaceGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md new file mode 100644 index 000000000000..03c19674a9a0 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md @@ -0,0 +1,199 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbgremlindatabasethroughput +schema: 2.0.0 +--- + +# Update-AzCosmosDBGremlinDatabaseThroughput + +## SYNOPSIS +Updates the throughput value of a CosmosDB Gremlin Database. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBGremlinDatabaseThroughput -ResourceGroupName -AccountName [-Name ] + -Throughput [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBGremlinDatabaseThroughput [-Name ] -Throughput + -ParentObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBGremlinDatabaseThroughput [-Name ] -Throughput + -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBGremlinDatabaseThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myDatabaseName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/gremlinDatabases/{myDatabaseName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +CosmosDB Account object + +```yaml +Type: PSGremlinDatabaseGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Database name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +CosmosDB Account object + +```yaml +Type: PSDatabaseAccount +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of Gremlin Database (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSDatabaseAccount + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md new file mode 100644 index 000000000000..5f78737ce313 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md @@ -0,0 +1,215 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbgremlingraphthroughput +schema: 2.0.0 +--- + +# Update-AzCosmosDBGremlinGraphThroughput + +## SYNOPSIS +Updates the throughput value of a CosmosDB Gremlin Graph. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBGremlinGraphThroughput -ResourceGroupName -AccountName + -DatabaseName [-Name ] -Throughput [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBGremlinGraphThroughput [-Name ] -Throughput + -ParentObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBGremlinGraphThroughput [-Name ] -Throughput + -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBGremlinGraphThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -DatabaseName {mydatabaseName} -Name {myGraphName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/gremlinDatabase/{mydatabaseName}/graphs/{myGraphName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseName +Database name. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Gremlin Database object. + +```yaml +Type: PSGremlinGraphGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Gremlin Graph Name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Gremlin Database object. + +```yaml +Type: PSGremlinDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of Gremlin Graph (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSGremlinDatabaseGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md new file mode 100644 index 000000000000..2564689c70e3 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md @@ -0,0 +1,217 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbmongodbcollectionthroughput +schema: 2.0.0 +--- + +# Update-AzCosmosDBMongoDBCollectionThroughput + +## SYNOPSIS +Updates the throughput value of a CosmosDB MongoDB Collection. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBMongoDBCollectionThroughput -ResourceGroupName -AccountName + -DatabaseName [-Name ] -Throughput [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBMongoDBCollectionThroughput [-Name ] -Throughput + -ParentObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBMongoDBCollectionThroughput [-Name ] -Throughput + -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBMongoDBCollectionThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -DatabaseName {mydatabaseName} -Name {myCollectionName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/mongodbDatabase/{mydatabaseName}/collections/{myCollectionName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +{{ Add example description here }} + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseName +Database name. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Mongo Database object. + +```yaml +Type: PSMongoDBCollectionGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Collection name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Mongo Database object. + +```yaml +Type: PSMongoDBDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of SQL container (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSMongoDBDatabaseGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md new file mode 100644 index 000000000000..475b4ac0b090 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md @@ -0,0 +1,199 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbmongodbdatabasethroughput +schema: 2.0.0 +--- + +# Update-AzCosmosDBMongoDBDatabaseThroughput + +## SYNOPSIS +Updates the throughput value of a CosmosDB MongoDB Database. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBMongoDBDatabaseThroughput -ResourceGroupName -AccountName [-Name ] + -Throughput [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBMongoDBDatabaseThroughput [-Name ] -Throughput + -ParentObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBMongoDBDatabaseThroughput [-Name ] -Throughput + -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBMongoDBThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myDatabaseName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/mongodbDatabases/{myDatabaseName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +CosmosDB Account object + +```yaml +Type: PSMongoDBDatabaseGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Database name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +CosmosDB Account object + +```yaml +Type: PSDatabaseAccount +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of Mongo database (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### None + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md new file mode 100644 index 000000000000..e3ca77038851 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md @@ -0,0 +1,215 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbsqlcontainerthroughput +schema: 2.0.0 +--- + +# Update-AzCosmosDBSqlContainerThroughput + +## SYNOPSIS +Updates the throughput value of a CosmosDB Sql Container. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBSqlContainerThroughput -ResourceGroupName -AccountName + -DatabaseName [-Name ] -Throughput [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBSqlContainerThroughput [-Name ] -Throughput + -ParentObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBSqlContainerThroughput [-Name ] -Throughput + -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBSqlContainerThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -DatabaseName {myDatabaseName} -Name {myContainerName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/sqlDatabases/{myDatabaseName}/conatiners/{myContainerName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseName +Database name. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Sql Database object. + +```yaml +Type: PSSqlContainerGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Container name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Sql Database object. + +```yaml +Type: PSSqlDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of SQL container (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md new file mode 100644 index 000000000000..32a6e5a25b48 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md @@ -0,0 +1,198 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbsqldatabasethroughput +schema: 2.0.0 +--- + +# Update-AzCosmosDBSqlDatabaseThroughput + +## SYNOPSIS +Updates the throughput value of a CosmosDB Sql Database. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBSqlDatabaseThroughput -ResourceGroupName -AccountName [-Name ] + -Throughput [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBSqlDatabaseThroughput [-Name ] -Throughput -ParentObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBSqlDatabaseThroughput [-Name ] -Throughput + -InputObject [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBSqlDatabseThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myDatabaseName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/sqlDatabases/{myDatabaseName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +CosmosDB Account object + +```yaml +Type: PSSqlDatabaseGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Database name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +CosmosDB Account object + +```yaml +Type: PSDatabaseAccount +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of SQL database (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSDatabaseAccount + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md new file mode 100644 index 000000000000..8e8698163af4 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md @@ -0,0 +1,197 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/update-azcosmosdbtablethroughput +schema: 2.0.0 +--- + +# Update-AzCosmosDBTableThroughput + +## SYNOPSIS +Updates the throughput value of a CosmosDB Table. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBTableThroughput -ResourceGroupName -AccountName [-Name ] + -Throughput [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBTableThroughput [-Name ] -Throughput -ParentObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBTableThroughput [-Name ] -Throughput -InputObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Update-AzCosmosDBTableThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myTableName} -Throughput {updatedThroughputValue} +Name : mxGp +Id : /subscriptions/{mySubscriptionId}/resourceGroups/{myResourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{myAccountName}/table/{myTableName}/throughputSettings/default +Throughput : {updatedThroughputValue} +MinimumThroughput : 400 +OfferReplacePending : +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +CosmosDB Account object + +```yaml +Type: PSTableGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the Table. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +CosmosDB Account object + +```yaml +Type: PSDatabaseAccount +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +The throughput of Table (RU/s). +Default value is 400. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSDatabaseAccount + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/KeyVault/KeyVault.Test/ScenarioTests/KeyVaultTestRunner.cs b/src/KeyVault/KeyVault.Test/ScenarioTests/KeyVaultTestRunner.cs new file mode 100644 index 000000000000..d28f6d701d4e --- /dev/null +++ b/src/KeyVault/KeyVault.Test/ScenarioTests/KeyVaultTestRunner.cs @@ -0,0 +1,41 @@ +using Microsoft.Azure.Commands.TestFx; +using System; +using System.Collections.Generic; +using System.Text; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.KeyVault.Test.ScenarioTests +{ + public class KeyVaultTestRunner + { + protected readonly ITestRunner TestRunner; + + protected KeyVaultTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Resources.ps1", + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("AzureRM.KeyVault.psd1"), + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"}, + }, + resourceProviders: new Dictionary + { + {"Microsoft.KeyVault", null}, + } + ) + .Build(); + } + } +} diff --git a/src/KeyVault/KeyVault.Test/ScenarioTests/SecretManagementExtensionTests.cs b/src/KeyVault/KeyVault.Test/ScenarioTests/SecretManagementExtensionTests.cs new file mode 100644 index 000000000000..2315a387a88c --- /dev/null +++ b/src/KeyVault/KeyVault.Test/ScenarioTests/SecretManagementExtensionTests.cs @@ -0,0 +1,43 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.Azure.Commands.KeyVault.Test.ScenarioTests +{ + public class SecretManagementExtensionTests : KeyVaultTestRunner + { + public SecretManagementExtensionTests(Xunit.Abstractions.ITestOutputHelper output) + :base(output) + { + } + + [Fact] + [Trait(Category.AcceptanceType, Category.LiveOnly)] + // Test case cannot be recorded + public void TestExtensionRegister() + { + TestRunner.RunTestScript("Test-ExtensionRegister"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.LiveOnly)] + // Test case cannot be recorded + public void TestSecretManagementExtension() + { + TestRunner.RunTestScript("Test-SecretManagementExtension"); + } + } +} diff --git a/src/KeyVault/KeyVault.Test/ScenarioTests/SecretManagementExtensionTests.ps1 b/src/KeyVault/KeyVault.Test/ScenarioTests/SecretManagementExtensionTests.ps1 new file mode 100644 index 000000000000..baa541b0c519 --- /dev/null +++ b/src/KeyVault/KeyVault.Test/ScenarioTests/SecretManagementExtensionTests.ps1 @@ -0,0 +1,47 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Test register secret management extension +#> +function Test-ExtensionRegister +{ + Register-SecretVault -Name AzKeyVault -ModuleName Az.KeyVault -VaultParameters @{ AZKVaultName = 'xdmkv'; SubscriptionId = '' } + + Get-SecretVault + + Unregister-SecretVault -Name AzKeyVault +} + +<# +.SYNOPSIS +Test secret management extension function +#> +function Test-SecretManagementExtension +{ + Register-SecretVault -Name AzKeyVault -ModuleName Az.KeyVault -VaultParameters @{ AZKVaultName = 'xdmkv'; SubscriptionId = '' } + + Get-SecretInfo -Vault AzKeyVault + + Get-Secret -Vault AzKeyVault -Name secret1 + + $secure = ConvertTo-SecureString -String "test" -AsPlainText -Force + Set-Secret -Vault AzKeyVault -Name secret3 -SecureStringSecret $secure + + Get-SecretInfo -Vault AzKeyVault + Remove-Secret -Vault AzKeyVault -Name secret3 + + +} \ No newline at end of file diff --git a/src/KeyVault/KeyVault/ChangeLog.md b/src/KeyVault/KeyVault/ChangeLog.md index 7e0d9df9b248..1e765e7681fa 100644 --- a/src/KeyVault/KeyVault/ChangeLog.md +++ b/src/KeyVault/KeyVault/ChangeLog.md @@ -18,9 +18,9 @@ - Additional information about change #1 --> ## Upcoming Release +* Added support to Microsoft.PowerShell.SecretManagement [#11178] ## Version 1.5.2 - * Added breaking change attributes to `New-AzKeyVault` ## Version 1.5.1 diff --git a/src/KeyVault/KeyVault/KeyVault.csproj b/src/KeyVault/KeyVault/KeyVault.csproj index 05742ea938f3..1aa1fcc947f6 100644 --- a/src/KeyVault/KeyVault/KeyVault.csproj +++ b/src/KeyVault/KeyVault/KeyVault.csproj @@ -16,5 +16,9 @@ + + + + \ No newline at end of file diff --git a/src/KeyVault/KeyVault/SecretManagementExtension/SecretManagementExtension.psd1 b/src/KeyVault/KeyVault/SecretManagementExtension/SecretManagementExtension.psd1 new file mode 100644 index 000000000000..23af8ba0bae0 --- /dev/null +++ b/src/KeyVault/KeyVault/SecretManagementExtension/SecretManagementExtension.psd1 @@ -0,0 +1,5 @@ +@{ + ModuleVersion = '1.0' + RootModule = '.\SecretManagementExtension.psm1' + FunctionsToExport = @('Set-Secret','Get-Secret','Remove-Secret','Get-SecretInfo','Test-SecretVault') +} diff --git a/src/KeyVault/KeyVault/SecretManagementExtension/SecretManagementExtension.psm1 b/src/KeyVault/KeyVault/SecretManagementExtension/SecretManagementExtension.psm1 new file mode 100644 index 000000000000..4b3770006fc1 --- /dev/null +++ b/src/KeyVault/KeyVault/SecretManagementExtension/SecretManagementExtension.psm1 @@ -0,0 +1,123 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +function Check-SubscriptionLogIn +{ + param ( + [string] $SubscriptionId, + [string] $AzKVaultName + ) + + Import-Module -Name Az.Accounts + + $azContext = Az.Accounts\Get-AzContext + if (($azContext -eq $null) -or ($azContext.Subscription.Id -ne $SubscriptionId)) + { + throw "To use ${AzKVaultName} Azure vault, the current user must be logged into Azure account subscription ${SubscriptionId}. Run 'Connect-AzAccount -SubscriptionId ${SubscriptionId}'." + } +} + +function Get-Secret +{ + param ( + [string] $Name, + [string] $VaultName, + [hashtable] $AdditionalParameters + ) + + Check-SubscriptionLogIn $AdditionalParameters.SubscriptionId $AdditionalParameters.AZKVaultName + + Import-Module -Name Az.KeyVault + + $secret = Az.KeyVault\Get-AzKeyVaultSecret -Name $Name -VaultName $AdditionalParameters.AZKVaultName + if ($secret -ne $null) + { + return $secret.SecretValue + } +} + +function Set-Secret +{ + param ( + [string] $Name, + [object] $Secret, + [string] $VaultName, + [hashtable] $AdditionalParameters + ) + + Check-SubscriptionLogIn $AdditionalParameters.SubscriptionId $AdditionalParameters.AZKVaultName + + Import-Module -Name Az.KeyVault + + $null = Az.KeyVault\Set-AzKeyVaultSecret -Name $Name -SecretValue $Secret -VaultName $AdditionalParameters.AZKVaultName + return $? +} + +function Remove-Secret +{ + param ( + [string] $Name, + [string] $VaultName, + [hashtable] $AdditionalParameters + ) + + Check-SubscriptionLogIn $AdditionalParameters.SubscriptionId $AdditionalParameters.AZKVaultName + + Import-Module -Name Az.KeyVault + + $null = Az.KeyVault\Remove-AzKeyVaultSecret -Name $Name -VaultName $AdditionalParameters.AZKVaultName -Force + return $? +} + +function Get-SecretInfo +{ + param ( + [string] $Filter, + [string] $VaultName, + [hashtable] $AdditionalParameters + ) + + Check-SubscriptionLogIn $AdditionalParameters.SubscriptionId $AdditionalParameters.AZKVaultName + + Import-Module -Name Az.KeyVault + + if ([string]::IsNullOrEmpty($Filter)) + { + $Filter = "*" + } + + $pattern = [WildcardPattern]::new($Filter) + $vaultSecretInfos = Az.KeyVault\Get-AzKeyVaultSecret -VaultName $AdditionalParameters.AZKVaultName + foreach ($vaultSecretInfo in $vaultSecretInfos) + { + if ($pattern.IsMatch($vaultSecretInfo.Name)) + { + Write-Output ( + [Microsoft.PowerShell.SecretManagement.SecretInformation]::new( + $vaultSecretInfo.Name, + [Microsoft.PowerShell.SecretManagement.SecretType]::SecureString, + $VaultName) + ) + } + } +} + +function Test-SecretVault +{ + param ( + [string] $VaultName, + [hashtable] $AdditionalParameters + ) + + try + { + Check-SubscriptionLogIn $AdditionalParameters.SubscriptionId $AdditionalParameters.AZKVaultName + } + catch + { + Write-Error $_ + return $false + } + + return $true +} diff --git a/src/Storage/Storage.Management.Test/ScenarioTests/StorageAccountTests.cs b/src/Storage/Storage.Management.Test/ScenarioTests/StorageAccountTests.cs index d1b39900826c..de53eae70c86 100644 --- a/src/Storage/Storage.Management.Test/ScenarioTests/StorageAccountTests.cs +++ b/src/Storage/Storage.Management.Test/ScenarioTests/StorageAccountTests.cs @@ -183,5 +183,19 @@ public void TestNewAzureStorageAccountQueueTableEncrytionKeyType() { TestRunner.RunTestScript("Test-NewAzureStorageAccountQueueTableEncrytionKeyType"); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestNewSetAzureStorageAccountGZRS() + { + TestRunner.RunTestScript("Test-NewSetAzureStorageAccount_GZRS"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestNewSetAzureStorageAccountRAGZRS() + { + TestRunner.RunTestScript("Test-NewSetAzureStorageAccount_RAGZRS"); + } } } diff --git a/src/Storage/Storage.Management.Test/ScenarioTests/StorageAccountTests.ps1 b/src/Storage/Storage.Management.Test/ScenarioTests/StorageAccountTests.ps1 index 4f4e74af1ae4..17b645734601 100644 --- a/src/Storage/Storage.Management.Test/ScenarioTests/StorageAccountTests.ps1 +++ b/src/Storage/Storage.Management.Test/ScenarioTests/StorageAccountTests.ps1 @@ -1189,4 +1189,100 @@ function Test-NewAzureStorageAccountQueueTableEncrytionKeyType # Cleanup Clean-ResourceGroup $rgname } +} + +<# +.SYNOPSIS +Test Test-NewSetAzureStorageAccount_GZRS +.DESCRIPTION +SmokeTest +#> +function Test-NewSetAzureStorageAccount_GZRS +{ + # Setup + $rgname = Get-StorageManagementTestResourceName; + + try + { + # Test + $stoname = 'sto' + $rgname; + $stotype = 'Standard_GZRS'; + $loc = Get-ProviderLocation_Canary ResourceManagement; + $kind = 'StorageV2' + + New-AzResourceGroup -Name $rgname -Location $loc; + Write-Output ("Resource Group created") + + New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -SkuName $stotype ; + + Retry-IfException { $global:sto = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; } + Assert-AreEqual $stoname $sto.StorageAccountName; + Assert-AreEqual $stotype $sto.Sku.Name; + Assert-AreEqual $loc.ToLower().Replace(" ", "") $sto.Location; + Assert-AreEqual $kind $sto.Kind; + + $stotype = 'Standard_RAGZRS'; + Set-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -SkuName $stotype ; + + Retry-IfException { $global:sto = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; } + Assert-AreEqual $stoname $sto.StorageAccountName; + Assert-AreEqual $stotype $sto.Sku.Name; + Assert-AreEqual $loc.ToLower().Replace(" ", "") $sto.Location; + Assert-AreEqual $kind $sto.Kind; + + Remove-AzStorageAccount -Force -ResourceGroupName $rgname -Name $stoname; + } + finally + { + # Cleanup + Clean-ResourceGroup $rgname + } +} + + <# +.SYNOPSIS +Test Test-NewAzureStorageAccount_RAGZRS +.DESCRIPTION +SmokeTest +#> +function Test-NewSetAzureStorageAccount_RAGZRS +{ + # Setup + $rgname = Get-StorageManagementTestResourceName; + + try + { + # Test + $stoname = 'sto' + $rgname; + $stotype = 'Standard_RAGZRS'; + $loc = Get-ProviderLocation_Canary ResourceManagement; + $kind = 'StorageV2' + + New-AzResourceGroup -Name $rgname -Location $loc; + Write-Output ("Resource Group created") + + New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -SkuName $stotype ; + + Retry-IfException { $global:sto = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; } + Assert-AreEqual $stoname $sto.StorageAccountName; + Assert-AreEqual $stotype $sto.Sku.Name; + Assert-AreEqual $loc.ToLower().Replace(" ", "") $sto.Location; + Assert-AreEqual $kind $sto.Kind; + + $stotype = 'Standard_GZRS'; + Set-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -SkuName $stotype ; + + Retry-IfException { $global:sto = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; } + Assert-AreEqual $stoname $sto.StorageAccountName; + Assert-AreEqual $stotype $sto.Sku.Name; + Assert-AreEqual $loc.ToLower().Replace(" ", "") $sto.Location; + Assert-AreEqual $kind $sto.Kind; + + Remove-AzStorageAccount -Force -ResourceGroupName $rgname -Name $stoname; + } + finally + { + # Cleanup + Clean-ResourceGroup $rgname + } } \ No newline at end of file diff --git a/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageAccountTests/TestNewSetAzureStorageAccountGZRS.json b/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageAccountTests/TestNewSetAzureStorageAccountGZRS.json new file mode 100644 index 000000000000..18941f4f4af1 --- /dev/null +++ b/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageAccountTests/TestNewSetAzureStorageAccountGZRS.json @@ -0,0 +1,942 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourcegroups/pstestrg2410?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlZ3JvdXBzL3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8f61e388-f064-4690-b57b-5db47fcfbf6a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "f4dd84b2-c974-4f03-975a-852402908ee6" + ], + "x-ms-correlation-request-id": [ + "f4dd84b2-c974-4f03-975a-852402908ee6" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054058Z:f4dd84b2-c974-4f03-975a-852402908ee6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:40:57 GMT" + ], + "Content-Length": [ + "182" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410\",\r\n \"name\": \"pstestrg2410\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Storage/checkNameAvailability?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"stopstestrg2410\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e953c315-6ae7-41af-b715-5be3ecf94d8a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "81" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "00004bfb-4a04-4a86-85d3-11f414ae3018" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "a35f6973-2b11-46a4-b6c3-31fd8e05767e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054059Z:a35f6973-2b11-46a4-b6c3-31fd8e05767e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:40:59 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMjQxMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GZRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ca570e27-42d6-4bf3-a1c6-b9d1b3159cf6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "104" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/1005c2d4-b4b3-454f-927c-dc5a4281e73d?monitor=true&api-version=2019-06-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "1005c2d4-b4b3-454f-927c-dc5a4281e73d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "35176939-8204-493c-b92a-416b7ca18cec" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054107Z:35176939-8204-493c-b92a-416b7ca18cec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:07 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/1005c2d4-b4b3-454f-927c-dc5a4281e73d?monitor=true&api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvYXN5bmNvcGVyYXRpb25zLzEwMDVjMmQ0LWI0YjMtNDU0Zi05MjdjLWRjNWE0MjgxZTczZD9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5a56719a-acfc-4eef-ae24-7d39f21ee471" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "535b075d-91c2-4db9-bb67-c592ced5d02a" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054124Z:535b075d-91c2-4db9-bb67-c592ced5d02a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:24 GMT" + ], + "Content-Length": [ + "1294" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410\",\r\n \"name\": \"stopstestrg2410\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:41:07.0552888Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg2410.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMjQxMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fbb513fd-bf5b-4547-ba23-d769cda8bdd1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7e41824d-67a7-4ce4-a4aa-6b31733256fe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "34ea6502-5e9e-44a7-aece-3d13c5078eb8" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054125Z:34ea6502-5e9e-44a7-aece-3d13c5078eb8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:24 GMT" + ], + "Content-Length": [ + "1294" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410\",\r\n \"name\": \"stopstestrg2410\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:41:07.0552888Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg2410.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMjQxMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1e401dbf-f850-406d-9bc5-3cc7251e8546" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c213e772-7bac-4a8e-856c-5f39b00aef36" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "4f1e69fd-498a-470e-9cb6-ed45e2fe9397" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054126Z:4f1e69fd-498a-470e-9cb6-ed45e2fe9397" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:26 GMT" + ], + "Content-Length": [ + "1294" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410\",\r\n \"name\": \"stopstestrg2410\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:41:07.0552888Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg2410.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMjQxMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b32bbfac-8b5e-4d14-b2a9-640ce3a3b42b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "83e223a6-2a8f-4a9d-9864-89f61b9c18ee" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "13df9c9f-c655-42e2-a6c4-529b13d5f26d" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054136Z:13df9c9f-c655-42e2-a6c4-529b13d5f26d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:35 GMT" + ], + "Content-Length": [ + "1652" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_RAGZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410\",\r\n \"name\": \"stopstestrg2410\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:41:07.0552888Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg2410.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\",\r\n \"secondaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410-secondary.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410-secondary.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410-secondary.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410-secondary.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410-secondary.table.core.windows.net/\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMjQxMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "490c9bc6-02ae-4e61-9041-fb6abbe50060" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "33abfd5d-6f31-4849-9e05-921d7bdc8b8e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "51961a4f-af1a-4e81-a29e-438eb4626bd5" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054137Z:51961a4f-af1a-4e81-a29e-438eb4626bd5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:37 GMT" + ], + "Content-Length": [ + "1652" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_RAGZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410\",\r\n \"name\": \"stopstestrg2410\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:41:07.0552888Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg2410.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\",\r\n \"secondaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410-secondary.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410-secondary.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410-secondary.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410-secondary.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410-secondary.table.core.windows.net/\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMjQxMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_RAGZRS\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5494c96a-303d-4eea-9c29-2a9c2c88a272" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "52" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "08b5a7b3-09e7-4797-94c8-33a590b9bc0e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d41bd4bb-acac-47ef-a828-c718e4f92a82" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054136Z:d41bd4bb-acac-47ef-a828-c718e4f92a82" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:35 GMT" + ], + "Content-Length": [ + "1652" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_RAGZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410\",\r\n \"name\": \"stopstestrg2410\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:41:07.11779Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:41:07.0552888Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg2410.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\",\r\n \"secondaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg2410-secondary.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg2410-secondary.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg2410-secondary.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg2410-secondary.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg2410-secondary.table.core.windows.net/\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg2410/providers/Microsoft.Storage/storageAccounts/stopstestrg2410?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMjQxMC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2365e5f4-bf6a-4f3c-b0b0-e2acbe27c573" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a6f60635-c84a-4a51-9a6f-3867266eb62d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "f899f675-679c-4a8c-9e34-4c15ba7eb469" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054146Z:f899f675-679c-4a8c-9e34-4c15ba7eb469" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:46 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourcegroups/pstestrg2410?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlZ3JvdXBzL3BzdGVzdHJnMjQxMD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "67dfa859-42f6-4a44-a4fe-c8eba329dd8d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzI0MTAtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "be468030-0d55-450a-be81-07ff02d27a0a" + ], + "x-ms-correlation-request-id": [ + "be468030-0d55-450a-be81-07ff02d27a0a" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054154Z:be468030-0d55-450a-be81-07ff02d27a0a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:41:53 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzI0MTAtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSekkwTVRBdFJVRlRWRlZUTWtWVlFWQWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pKbGRXRndJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzI0MTAtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "429b1c68-4b69-4330-8f7a-8acd2b6e9f4b" + ], + "x-ms-correlation-request-id": [ + "429b1c68-4b69-4330-8f7a-8acd2b6e9f4b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054210Z:429b1c68-4b69-4330-8f7a-8acd2b6e9f4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:42:09 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzI0MTAtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSekkwTVRBdFJVRlRWRlZUTWtWVlFWQWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pKbGRXRndJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzI0MTAtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "c30f913e-7abe-4790-80a8-48dcedca001a" + ], + "x-ms-correlation-request-id": [ + "c30f913e-7abe-4790-80a8-48dcedca001a" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054225Z:c30f913e-7abe-4790-80a8-48dcedca001a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:42:25 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzI0MTAtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSekkwTVRBdFJVRlRWRlZUTWtWVlFWQWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pKbGRXRndJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "70f44744-f7fd-4ba4-b32d-52cfd06c5883" + ], + "x-ms-correlation-request-id": [ + "70f44744-f7fd-4ba4-b32d-52cfd06c5883" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054241Z:70f44744-f7fd-4ba4-b32d-52cfd06c5883" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:42:40 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzI0MTAtRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSekkwTVRBdFJVRlRWRlZUTWtWVlFWQWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pKbGRXRndJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "51615a06-54d2-4843-82a2-86a4c17ae8a6" + ], + "x-ms-correlation-request-id": [ + "51615a06-54d2-4843-82a2-86a4c17ae8a6" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054241Z:51615a06-54d2-4843-82a2-86a4c17ae8a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:42:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-NewSetAzureStorageAccount_GZRS": [ + "pstestrg2410" + ] + }, + "Variables": { + "SubscriptionId": "ce4a7590-4722-4bcf-a2c6-e473e9f11778" + } +} \ No newline at end of file diff --git a/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageAccountTests/TestNewSetAzureStorageAccountRAGZRS.json b/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageAccountTests/TestNewSetAzureStorageAccountRAGZRS.json new file mode 100644 index 000000000000..764f604bc2e6 --- /dev/null +++ b/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageAccountTests/TestNewSetAzureStorageAccountRAGZRS.json @@ -0,0 +1,942 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourcegroups/pstestrg4519?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlZ3JvdXBzL3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fd3fb3ba-4994-4cb0-aae5-1f2876f868f4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "c6685504-e983-4b33-a105-6a83be171d8b" + ], + "x-ms-correlation-request-id": [ + "c6685504-e983-4b33-a105-6a83be171d8b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053908Z:c6685504-e983-4b33-a105-6a83be171d8b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:07 GMT" + ], + "Content-Length": [ + "182" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519\",\r\n \"name\": \"pstestrg4519\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Storage/checkNameAvailability?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"stopstestrg4519\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bfd3e179-57d6-4d2f-af5d-e1df2d32f7c0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "81" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3755eef8-7cb7-40c1-8742-959333bfdf48" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "a1c68733-48cf-4f70-b424-6dfe54998409" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053908Z:a1c68733-48cf-4f70-b424-6dfe54998409" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:07 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNDUxOS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_RAGZRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4ecf7938-626b-4dd3-99c8-971f138d9ce4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "106" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/7f3fe1f5-50ad-4c77-9cbf-9f35ad6d9bbc?monitor=true&api-version=2019-06-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "7f3fe1f5-50ad-4c77-9cbf-9f35ad6d9bbc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "dde98918-1618-4bd4-aacf-a2855da29ed0" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053918Z:dde98918-1618-4bd4-aacf-a2855da29ed0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:18 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/7f3fe1f5-50ad-4c77-9cbf-9f35ad6d9bbc?monitor=true&api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvYXN5bmNvcGVyYXRpb25zLzdmM2ZlMWY1LTUwYWQtNGM3Ny05Y2JmLTlmMzVhZDZkOWJiYz9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ad089d7c-a4ff-4d1d-bae0-89cc90c3b5ca" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "2dd1783e-76d9-4b78-ad12-cd3af53a2b54" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053935Z:2dd1783e-76d9-4b78-ad12-cd3af53a2b54" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:35 GMT" + ], + "Content-Length": [ + "1652" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_RAGZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519\",\r\n \"name\": \"stopstestrg4519\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:39:17.579025Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg4519.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\",\r\n \"secondaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519-secondary.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519-secondary.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519-secondary.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519-secondary.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519-secondary.table.core.windows.net/\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNDUxOS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d997e87d-5067-47a1-b8ef-91a65c5ccf46" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "dbc74451-d4c5-4f39-b97d-a9fe6f99852d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "eccc7669-59b9-46a3-9c0e-f4f0cf38a26e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053935Z:eccc7669-59b9-46a3-9c0e-f4f0cf38a26e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:35 GMT" + ], + "Content-Length": [ + "1652" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_RAGZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519\",\r\n \"name\": \"stopstestrg4519\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:39:17.579025Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg4519.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\",\r\n \"secondaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519-secondary.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519-secondary.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519-secondary.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519-secondary.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519-secondary.table.core.windows.net/\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNDUxOS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0ac8b956-eebf-48bf-ad2a-2c1cf8b9627f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b80504ca-8000-46a4-ab5e-87b7151b19da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "9ca0084d-c5f6-48ba-9fd9-1c4411ae3f23" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053937Z:9ca0084d-c5f6-48ba-9fd9-1c4411ae3f23" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:36 GMT" + ], + "Content-Length": [ + "1652" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_RAGZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519\",\r\n \"name\": \"stopstestrg4519\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:39:17.579025Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg4519.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\",\r\n \"secondaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519-secondary.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519-secondary.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519-secondary.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519-secondary.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519-secondary.table.core.windows.net/\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNDUxOS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dc1f353a-4d9a-4990-999c-ad42a46c2714" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7e1d15bc-68ac-47b4-914e-360b4a8ce761" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "23c247a4-7cfb-4101-9787-1017605b88da" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053945Z:23c247a4-7cfb-4101-9787-1017605b88da" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:45 GMT" + ], + "Content-Length": [ + "1294" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519\",\r\n \"name\": \"stopstestrg4519\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:39:17.579025Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg4519.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNDUxOS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0315c953-d6ac-4f77-b08e-ff141e437240" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "eda89468-5bbe-456c-9329-6f5360e6eec5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "5cc6f248-6e38-41a6-9f66-404320b0dc67" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053946Z:5cc6f248-6e38-41a6-9f66-404320b0dc67" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:45 GMT" + ], + "Content-Length": [ + "1294" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519\",\r\n \"name\": \"stopstestrg4519\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:39:17.579025Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg4519.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNDUxOS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GZRS\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1f677423-551e-4051-b07b-b0af766e9d83" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "50" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "dc71c704-3515-4387-b11e-692983f2b79e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "21fc4231-b097-4fef-8a25-7a2afaec1ef3" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053945Z:21fc4231-b097-4fef-8a25-7a2afaec1ef3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:44 GMT" + ], + "Content-Length": [ + "1294" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GZRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519\",\r\n \"name\": \"stopstestrg4519\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-11-29T05:39:17.6415437Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-11-29T05:39:17.579025Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://stopstestrg4519.dfs.core.windows.net/\",\r\n \"web\": \"https://stopstestrg4519.z3.web.core.windows.net/\",\r\n \"blob\": \"https://stopstestrg4519.blob.core.windows.net/\",\r\n \"queue\": \"https://stopstestrg4519.queue.core.windows.net/\",\r\n \"table\": \"https://stopstestrg4519.table.core.windows.net/\",\r\n \"file\": \"https://stopstestrg4519.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/pstestrg4519/providers/Microsoft.Storage/storageAccounts/stopstestrg4519?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNDUxOS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "65afd35d-7579-453e-bfc2-0e9cfbc90d33" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.1.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f69ff8b5-ac66-4148-917c-94ca79d2b54f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "90395b29-363b-4204-a58e-85acdad67dac" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T053954Z:90395b29-363b-4204-a58e-85acdad67dac" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:39:53 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourcegroups/pstestrg4519?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlZ3JvdXBzL3BzdGVzdHJnNDUxOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8d624e95-e8ab-49d3-9f6d-dab61276c92f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzQ1MTktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "4342b530-53af-4a5c-945b-802dce47dc54" + ], + "x-ms-correlation-request-id": [ + "4342b530-53af-4a5c-945b-802dce47dc54" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054002Z:4342b530-53af-4a5c-945b-802dce47dc54" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:40:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzQ1MTktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSelExTVRrdFJVRlRWRlZUTWtWVlFWQWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pKbGRXRndJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzQ1MTktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "eebf2650-aa0b-4738-b763-375e589b32a7" + ], + "x-ms-correlation-request-id": [ + "eebf2650-aa0b-4738-b763-375e589b32a7" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054018Z:eebf2650-aa0b-4738-b763-375e589b32a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:40:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzQ1MTktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSelExTVRrdFJVRlRWRlZUTWtWVlFWQWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pKbGRXRndJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzQ1MTktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "f5a609aa-6464-447e-90d9-2162e12b5238" + ], + "x-ms-correlation-request-id": [ + "f5a609aa-6464-447e-90d9-2162e12b5238" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054033Z:f5a609aa-6464-447e-90d9-2162e12b5238" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:40:32 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzQ1MTktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSelExTVRrdFJVRlRWRlZUTWtWVlFWQWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pKbGRXRndJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "26d36d80-2f87-4399-87e7-ac32629bcdf9" + ], + "x-ms-correlation-request-id": [ + "26d36d80-2f87-4399-87e7-ac32629bcdf9" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054049Z:26d36d80-2f87-4399-87e7-ac32629bcdf9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:40:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzQ1MTktRUFTVFVTMkVVQVAiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czJldWFwIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSelExTVRrdFJVRlRWRlZUTWtWVlFWQWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pKbGRXRndJbjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27817.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.2" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "763e0d42-6a74-4737-9794-9dc1976f63df" + ], + "x-ms-correlation-request-id": [ + "763e0d42-6a74-4737-9794-9dc1976f63df" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20191129T054049Z:763e0d42-6a74-4737-9794-9dc1976f63df" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 29 Nov 2019 05:40:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-NewSetAzureStorageAccount_RAGZRS": [ + "pstestrg4519" + ] + }, + "Variables": { + "SubscriptionId": "ce4a7590-4722-4bcf-a2c6-e473e9f11778" + } +} \ No newline at end of file diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index df3461394725..878df23b39fb 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,6 +18,10 @@ - Additional information about change #1 --> ## Upcoming Release +* Add breaking change notice for Azure File cmdlets output change in a future release +* Support new SkuName StandardGZRS, StandardRAGZRS when create/update Storage account + - New-AzStorageAccount + - Set-AzStorageAccount ## Version 1.13.0 * Supported AllowProtectedAppendWrite in ImmutabilityPolicy diff --git a/src/Storage/Storage.Management/StorageAccount/NewAzureStorageAccount.cs b/src/Storage/Storage.Management/StorageAccount/NewAzureStorageAccount.cs index 1ef708ba605b..32dcae5e4a95 100644 --- a/src/Storage/Storage.Management/StorageAccount/NewAzureStorageAccount.cs +++ b/src/Storage/Storage.Management/StorageAccount/NewAzureStorageAccount.cs @@ -57,6 +57,8 @@ public class NewAzureStorageAccountCommand : StorageAccountBaseCmdlet StorageModels.SkuName.StandardRAGRS, StorageModels.SkuName.PremiumLRS, StorageModels.SkuName.PremiumZRS, + StorageModels.SkuName.StandardGZRS, + StorageModels.SkuName.StandardRAGZRS, IgnoreCase = true)] public string SkuName { get; set; } diff --git a/src/Storage/Storage.Management/StorageAccount/SetAzureStorageAccount.cs b/src/Storage/Storage.Management/StorageAccount/SetAzureStorageAccount.cs index 0d29fe917bd5..28ac780c8ae3 100644 --- a/src/Storage/Storage.Management/StorageAccount/SetAzureStorageAccount.cs +++ b/src/Storage/Storage.Management/StorageAccount/SetAzureStorageAccount.cs @@ -78,6 +78,8 @@ public SwitchParameter Force StorageModels.SkuName.StandardGRS, StorageModels.SkuName.StandardRAGRS, StorageModels.SkuName.PremiumLRS, + StorageModels.SkuName.StandardGZRS, + StorageModels.SkuName.StandardRAGZRS, IgnoreCase = true)] public string SkuName { get; set; } diff --git a/src/Storage/Storage.Management/StorageAccount/StorageAccountBaseCmdlet.cs b/src/Storage/Storage.Management/StorageAccount/StorageAccountBaseCmdlet.cs index 7efb98a16978..d06cdb4f5b0b 100644 --- a/src/Storage/Storage.Management/StorageAccount/StorageAccountBaseCmdlet.cs +++ b/src/Storage/Storage.Management/StorageAccount/StorageAccountBaseCmdlet.cs @@ -48,6 +48,9 @@ public abstract class StorageAccountBaseCmdlet : AzureRMCmdlet protected const string StorageUsageNounStr = "AzureRmStorageUsage"; + internal const string StandardGZRS = "Standard_GZRS"; + internal const string StandardRAGZRS = "Standard_RAGZRS"; + protected struct AccountAccessTier { internal const string Hot = "Hot"; diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccount.md b/src/Storage/Storage.Management/help/New-AzStorageAccount.md index 995d29c9175d..35c814928819 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccount.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccount.md @@ -369,12 +369,14 @@ The acceptable values for this parameter are: - Standard_RAGRS. Read access geo-redundant storage. - Premium_LRS. Premium locally-redundant storage. - Premium_ZRS. Premium zone-redundant storage. +- Standard_GZRS - Geo-redundant zone-redundant storage. +- Standard_RAGZRS - Read access geo-redundant zone-redundant storage. ```yaml Type: System.String Parameter Sets: (All) Aliases: StorageAccountType, AccountType, Type -Accepted values: Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS, Premium_ZRS +Accepted values: Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS, Premium_ZRS, Standard_GZRS, Standard_RAGZRS Required: True Position: 2 @@ -415,7 +417,7 @@ Accept wildcard characters: False ``` ### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS diff --git a/src/Storage/Storage.Management/help/Set-AzStorageAccount.md b/src/Storage/Storage.Management/help/Set-AzStorageAccount.md index da4650ec535b..67e5010887d1 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageAccount.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageAccount.md @@ -382,6 +382,8 @@ The acceptable values for this parameter are: - Standard_GRS - Geo-redundant storage. - Standard_RAGRS - Read access geo-redundant storage. - Premium_LRS - Premium locally-redundant storage. +- Standard_GZRS - Geo-redundant zone-redundant storage. +- Standard_RAGZRS - Read access geo-redundant zone-redundant storage. You cannot change Standard_ZRS and Premium_LRS types to other account types. You cannot change other account types to Standard_ZRS or Premium_LRS. @@ -389,7 +391,7 @@ You cannot change other account types to Standard_ZRS or Premium_LRS. Type: System.String Parameter Sets: (All) Aliases: StorageAccountType, AccountType, Type -Accepted values: Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS +Accepted values: Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS, Standard_GZRS, Standard_RAGZRS Required: False Position: Named @@ -491,7 +493,7 @@ Accept wildcard characters: False ``` ### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS diff --git a/src/Storage/Storage/File/Cmdlet/GetAzureStorageFile.cs b/src/Storage/Storage/File/Cmdlet/GetAzureStorageFile.cs index 34e5e1024944..b11df81d6a26 100644 --- a/src/Storage/Storage/File/Cmdlet/GetAzureStorageFile.cs +++ b/src/Storage/Storage/File/Cmdlet/GetAzureStorageFile.cs @@ -16,12 +16,14 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet { using Microsoft.Azure.Storage; using Microsoft.Azure.Storage.File; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System.Globalization; using System.Management.Automation; using System.Net; [Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFile", DefaultParameterSetName = Constants.ShareNameParameterSetName)] [OutputType(typeof(CloudFile))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")] public class GetAzureStorageFile : AzureStorageFileCmdletBase { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/GetAzureStorageFileContent.cs b/src/Storage/Storage/File/Cmdlet/GetAzureStorageFileContent.cs index 31ff937c583d..1623192bdf15 100644 --- a/src/Storage/Storage/File/Cmdlet/GetAzureStorageFileContent.cs +++ b/src/Storage/Storage/File/Cmdlet/GetAzureStorageFileContent.cs @@ -28,9 +28,11 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet using LocalDirectory = System.IO.Directory; using LocalPath = System.IO.Path; using System.Runtime.InteropServices; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; [Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName)] [OutputType(typeof(CloudFile))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")] public class GetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/GetAzureStorageFileCopyState.cs b/src/Storage/Storage/File/Cmdlet/GetAzureStorageFileCopyState.cs index 016c1fb49d1c..1d5147fef26e 100644 --- a/src/Storage/Storage/File/Cmdlet/GetAzureStorageFileCopyState.cs +++ b/src/Storage/Storage/File/Cmdlet/GetAzureStorageFileCopyState.cs @@ -22,11 +22,13 @@ using System.Security.Permissions; using System.Threading; using System.Threading.Tasks; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet { [Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileCopyState")] [OutputType(typeof(CloudFile))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")] public class GetAzureStorageFileCopyStateCommand : AzureStorageFileCmdletBase { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/GetAzureStorageShare.cs b/src/Storage/Storage/File/Cmdlet/GetAzureStorageShare.cs index 5f416aa71553..c954189530c1 100644 --- a/src/Storage/Storage/File/Cmdlet/GetAzureStorageShare.cs +++ b/src/Storage/Storage/File/Cmdlet/GetAzureStorageShare.cs @@ -21,9 +21,11 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet using System; using System.Globalization; using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; [Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare", DefaultParameterSetName = Constants.MatchingPrefixParameterSetName)] [OutputType(typeof(CloudFileShare))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileShare to AzureStorageFileShare, and AzureStorageFileShare will have CloudFileShare as a child property.")] public class GetAzureStorageShare : AzureStorageFileCmdletBase { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/NewAzureStorageDirectory.cs b/src/Storage/Storage/File/Cmdlet/NewAzureStorageDirectory.cs index 4f78790f3dda..48d07cdf8156 100644 --- a/src/Storage/Storage/File/Cmdlet/NewAzureStorageDirectory.cs +++ b/src/Storage/Storage/File/Cmdlet/NewAzureStorageDirectory.cs @@ -15,10 +15,12 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet { using Microsoft.Azure.Storage.File; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System.Globalization; using System.Management.Automation; [Cmdlet("New", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageDirectory", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(CloudFileDirectory))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileDirectory to AzureStorageFileDirectory, and AzureStorageFileDirectory will have CloudFileDirectory as a child property.")] public class NewAzureStorageDirectory : AzureStorageFileCmdletBase { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/NewAzureStorageShare.cs b/src/Storage/Storage/File/Cmdlet/NewAzureStorageShare.cs index c472b664c992..bcd850c4161a 100644 --- a/src/Storage/Storage/File/Cmdlet/NewAzureStorageShare.cs +++ b/src/Storage/Storage/File/Cmdlet/NewAzureStorageShare.cs @@ -16,8 +16,10 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet { using System.Management.Automation; using Azure.Storage.File; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; [Cmdlet("New", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(CloudFileShare))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileShare to AzureStorageFileShare, and AzureStorageFileShare will have CloudFileShare as a child property.")] public class NewAzureStorageShare : AzureStorageFileCmdletBase { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageDirectory.cs b/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageDirectory.cs index 5ee4606242ba..ab48cfefbbe4 100644 --- a/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageDirectory.cs +++ b/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageDirectory.cs @@ -15,10 +15,12 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet { using Microsoft.Azure.Storage.File; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System.Globalization; using System.Management.Automation; [Cmdlet("Remove", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageDirectory",SupportsShouldProcess = true,DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(CloudFileDirectory))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileDirectory to AzureStorageFileDirectory, and AzureStorageFileDirectory will have CloudFileDirectory as a child property.")] public class RemoveAzureStorageDirectory : AzureStorageFileCmdletBase { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageFile.cs b/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageFile.cs index a0b3e27ffce0..fb5596be1edb 100644 --- a/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageFile.cs +++ b/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageFile.cs @@ -15,10 +15,12 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet { using Microsoft.Azure.Storage.File; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System.Globalization; using System.Management.Automation; [Cmdlet("Remove", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFile",SupportsShouldProcess = true,DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(CloudFile))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")] public class RemoveAzureStorageFile : AzureStorageFileCmdletBase { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageShare.cs b/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageShare.cs index 9dfa85adb597..80167576ce01 100644 --- a/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageShare.cs +++ b/src/Storage/Storage/File/Cmdlet/RemoveAzureStorageShare.cs @@ -19,8 +19,10 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet using Microsoft.Azure.Storage.File; using System.Globalization; using System.Management.Automation; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; [Cmdlet("Remove", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare",DefaultParameterSetName = Constants.ShareNameParameterSetName,SupportsShouldProcess = true), OutputType(typeof(CloudFileShare))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileShare to AzureStorageFileShare, and AzureStorageFileShare will have CloudFileShare as a child property.")] public class RemoveAzureStorageShare : AzureStorageFileCmdletBase { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/SetAzureStorageFileContent.cs b/src/Storage/Storage/File/Cmdlet/SetAzureStorageFileContent.cs index 4b0e83abd94c..891508212728 100644 --- a/src/Storage/Storage/File/Cmdlet/SetAzureStorageFileContent.cs +++ b/src/Storage/Storage/File/Cmdlet/SetAzureStorageFileContent.cs @@ -28,8 +28,10 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet using LocalConstants = Microsoft.WindowsAzure.Commands.Storage.File.Constants; using System.Runtime.InteropServices; using Microsoft.Azure.Storage.DataMovement; + using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; [Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName), OutputType(typeof(CloudFile))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")] public class SetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters { [Parameter( diff --git a/src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs b/src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs index 85d30801d3cf..e0f4f2c1b494 100644 --- a/src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs +++ b/src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs @@ -17,10 +17,12 @@ using System.Globalization; using System.Management.Automation; using System.Security.Permissions; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet { [Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShareQuota"), OutputType(typeof(FileShareProperties))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from FileShareProperties to AzureStorageFileShare, and AzureStorageFileShare will have FileShareProperties in child property.")] public class SetAzureStorageShareQuota : AzureStorageFileCmdletBase { [Alias("N", "Name")] diff --git a/src/Storage/Storage/File/Cmdlet/StartAzureStorageFileCopy.cs b/src/Storage/Storage/File/Cmdlet/StartAzureStorageFileCopy.cs index f361211a363e..39f3ccd31373 100644 --- a/src/Storage/Storage/File/Cmdlet/StartAzureStorageFileCopy.cs +++ b/src/Storage/Storage/File/Cmdlet/StartAzureStorageFileCopy.cs @@ -23,10 +23,12 @@ using System.Management.Automation; using System.Security.Permissions; using System.Threading.Tasks; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet { [Cmdlet("Start", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileCopy", SupportsShouldProcess = true), OutputType(typeof(void))] + [CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")] public class StartAzureStorageFileCopyCommand : StorageFileDataManagementCmdletBase { private const string ContainerNameParameterSet = "ContainerName"; diff --git a/tools/CleanupBuild.ps1 b/tools/CleanupBuild.ps1 index 38cd16c67c27..d5c5ccab95b1 100644 --- a/tools/CleanupBuild.ps1 +++ b/tools/CleanupBuild.ps1 @@ -62,13 +62,17 @@ foreach($RMPath in $resourceManagerPaths) $acceptedDlls += $assembly.Split("\")[-1] } - Write-Verbose "Removing redundant dlls in $($RMFolder.Name)" + Write-Host "Removing redundant dlls in $($RMFolder.Name)" $removedDlls = Get-ChildItem -Path $RMFolder.FullName -Filter "*.dll" -Recurse | where { $acceptedDlls -notcontains $_.Name -and !$_.FullName.Contains("Assemblies") } - $removedDlls | % { Write-Verbose "Removing $($_.Name)"; Remove-Item $_.FullName -Force } + $removedDlls | % { Write-Host "Removing $($_.Name)"; Remove-Item $_.FullName -Force } - Write-Verbose "Removing scripts and psd1 in $($RMFolder.FullName)" + Write-Host "Removing scripts and psd1 in $($RMFolder.FullName)" - $removedPsd1 = Get-ChildItem -Path "$($RMFolder.FullName)" -Include "*.psd1" -Exclude "PsSwaggerUtility*.psd1" -Recurse | where { $_.FullName -ne "$($RMFolder.FullName)$([IO.Path]::DirectorySeparatorChar)$($RMFolder.Name).psd1" } - $removedPsd1 | % { Write-Verbose "Removing $($_.FullName)"; Remove-Item $_.FullName -Force } + $exludedPsd1 = @( + "PsSwaggerUtility*.psd1", + "SecretManagementExtension.psd1" + ) + $removedPsd1 = Get-ChildItem -Path "$($RMFolder.FullName)" -Include "*.psd1" -Exclude $exludedPsd1 -Recurse | where { $_.FullName -ne "$($RMFolder.FullName)$([IO.Path]::DirectorySeparatorChar)$($RMFolder.Name).psd1" } + $removedPsd1 | % { Write-Host "Removing $($_.FullName)"; Remove-Item $_.FullName -Force } } } diff --git a/tools/NewHelpIndex.ps1 b/tools/NewHelpIndex.ps1 index cf1d149eb0d6..30702bca62be 100644 --- a/tools/NewHelpIndex.ps1 +++ b/tools/NewHelpIndex.ps1 @@ -68,7 +68,9 @@ $HelpFolders = @() $resourceManagerPath = "$PSScriptRoot/../artifacts/$BuildConfig/" -$RMpsd1s += Get-ChildItem -Path $resourceManagerPath -Depth 2 | Where-Object { $_.Name -like "*.psd1" -and $_.FullName -notlike "*dll-Help*" } +$RMpsd1s += Get-ChildItem -Path $resourceManagerPath -Depth 2 | Where-Object { + $_.Name -like "*.psd1" -and $_.FullName -notlike "*dll-Help*" -and $_.Name -ne "SecretManagementExtension.psd1" +} $HelpFolders += Get-ChildItem -Path "$PSScriptRoot/../src" -Recurse -Directory | where { $_.Name -eq "help" -and $_.FullName -notlike "*\Stack\*" -and $_.FullName -notlike "*\bin\*"} @@ -93,7 +95,11 @@ $RMpsd1s | ForEach-Object { $outputCmdlets = @{} - $parsedPsd1.CmdletsToExport | ForEach-Object { + $cmdletsToExport = $parsedPsd1.CmdletsToExport | Where-Object { $_ } + $functionsToExport = $parsedPsd1.FunctionsToExport | Where-Object { $_ } + $cmdletsToExport = $cmdletsToExport + $functionsToExport + + $cmdletsToExport | ForEach-Object { $cmdletHelpFile = $HelpFileMapping["$_.md"] if ($cmdletHelpFile -eq $null -and $Target -eq "Latest") {